Ik probeer een mailserver op te zetten onder Ubuntu.
Nu lukt bijna, alles behalve het ontvangen van mail. Verzenden gaat wel goed.
Ik heb echter geen idee wat de oorzaak is. Overigens heb ik voor het opzetten van een en ander gebruik gemaakt van de instructies op de volgende site: www.tomvergote.be
Hieronder vind je de foutmelding waar het allemaal om gaat.
Nov 7 17:08:56 localhost fetchmail[6399]: awakened at Sun 07 Nov 2004 05:08:56 PM CET
Nov 7 17:09:02 localhost fetchmail[6399]: 1 message for <USERNAME> at pop3.zonnet.nl (1445 octets).
Nov 7 17:09:02 localhost fetchmail[6399]: reading message <USERNAME>@pop3.zonnet.nl:1 of 1 (1445 octets)
Nov 7 17:09:02 localhost postfix/smtpd[6655]: connect from localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost postfix/smtpd[6655]: 22A759472D: client=localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost postfix/cleanup[6658]: 22A759472D: message-id=<418E4808.403@zonnet.nl>
Nov 7 17:09:03 localhost fetchmail[6399]: flushed
Nov 7 17:09:03 localhost postfix/qmgr[6615]: 22A759472D: from=<<USERNAME>@zonnet.nl>, size=1753, nrcpt=1 (queue active)
Nov 7 17:09:03 localhost postfix/smtpd[6655]: disconnect from localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost fetchmail[6399]: sleeping at Sun 07 Nov 2004 05:09:03 PM CET
Nov 7 17:09:43 localhost postfix/smtp[6659]: 22A759472D: to=<<USERNAME>@localhost>, relay=none, delay=40, status=deferred (Host or domain name not found. Name service error for name=smtp.zonnet.nl type=MX: Host not found, try again)
Als ik "postconf -n" doe, is het resultaat:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail -a $DOMAIN
mailbox_size_limit = 0
mydestination = $myhostname, localhost.$mydomain, $mydomain
myhostname = localhost.localdomain
mynetworks = 127.0.0.0/8, 192.168.1.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = smtp.zonnet.nl
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
Inhoud /etc/hosts:
127.0.0.1 localhost.localdomain localhost Gandalf
Inhoud resolv.conf:
nameserver 192.168.1.1
nameserver 192.168.1.1
Inhoud master.cf:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
127.0.0.1:smtp inet n - - - - smtpd
#::1:smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
# only used by postfix-tls
#tlsmgr fifo - - n 300 1 tlsmgr
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
Resultaat nslookup localhost:
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: localhost
Address: 127.0.0.1
Ik heb geprobeerd in /etc/postfix/main.cf de waarde voor relayhost te veranderen in [smtp.zonnet.nl]. Dit verander de melding wel, maar zorgt er alleen maar voor dat de ontvanger direct het mailtje terugkrijgt:
Nov 7 17:25:05 localhost postfix/smtp[6814]: CD29894736: to=<irene@localhost>, relay=smtp.zonnet.nl[62.58.50.46], delay=43, status=sent (250 ok 1099844733 qp 12683)
Nu lukt bijna, alles behalve het ontvangen van mail. Verzenden gaat wel goed.
Ik heb echter geen idee wat de oorzaak is. Overigens heb ik voor het opzetten van een en ander gebruik gemaakt van de instructies op de volgende site: www.tomvergote.be
Hieronder vind je de foutmelding waar het allemaal om gaat.
Nov 7 17:08:56 localhost fetchmail[6399]: awakened at Sun 07 Nov 2004 05:08:56 PM CET
Nov 7 17:09:02 localhost fetchmail[6399]: 1 message for <USERNAME> at pop3.zonnet.nl (1445 octets).
Nov 7 17:09:02 localhost fetchmail[6399]: reading message <USERNAME>@pop3.zonnet.nl:1 of 1 (1445 octets)
Nov 7 17:09:02 localhost postfix/smtpd[6655]: connect from localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost postfix/smtpd[6655]: 22A759472D: client=localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost postfix/cleanup[6658]: 22A759472D: message-id=<418E4808.403@zonnet.nl>
Nov 7 17:09:03 localhost fetchmail[6399]: flushed
Nov 7 17:09:03 localhost postfix/qmgr[6615]: 22A759472D: from=<<USERNAME>@zonnet.nl>, size=1753, nrcpt=1 (queue active)
Nov 7 17:09:03 localhost postfix/smtpd[6655]: disconnect from localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost fetchmail[6399]: sleeping at Sun 07 Nov 2004 05:09:03 PM CET
Nov 7 17:09:43 localhost postfix/smtp[6659]: 22A759472D: to=<<USERNAME>@localhost>, relay=none, delay=40, status=deferred (Host or domain name not found. Name service error for name=smtp.zonnet.nl type=MX: Host not found, try again)
Als ik "postconf -n" doe, is het resultaat:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail -a $DOMAIN
mailbox_size_limit = 0
mydestination = $myhostname, localhost.$mydomain, $mydomain
myhostname = localhost.localdomain
mynetworks = 127.0.0.0/8, 192.168.1.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = smtp.zonnet.nl
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
Inhoud /etc/hosts:
127.0.0.1 localhost.localdomain localhost Gandalf
Inhoud resolv.conf:
nameserver 192.168.1.1
nameserver 192.168.1.1
Inhoud master.cf:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
127.0.0.1:smtp inet n - - - - smtpd
#::1:smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
# only used by postfix-tls
#tlsmgr fifo - - n 300 1 tlsmgr
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
Resultaat nslookup localhost:
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: localhost
Address: 127.0.0.1
Ik heb geprobeerd in /etc/postfix/main.cf de waarde voor relayhost te veranderen in [smtp.zonnet.nl]. Dit verander de melding wel, maar zorgt er alleen maar voor dat de ontvanger direct het mailtje terugkrijgt:
Nov 7 17:25:05 localhost postfix/smtp[6814]: CD29894736: to=<irene@localhost>, relay=smtp.zonnet.nl[62.58.50.46], delay=43, status=sent (250 ok 1099844733 qp 12683)
O'Toole's Commentary on Murphy's Law: Murphy was an optimist.