http://askubuntu.com/a/155676/45156 says to remove $mydomain from
mydestination = $mydomain, localhost.$mydomain, localhost
but why? Just as anything to @localhost should get spooled to
/var/mail/, shouldn't $mydomain similarly get spooled exactly as
localhost? Isn't that rather the point, to spool only what's in
mydestination, anything else gets bounced or sent on?
root@dur:~#
root@dur:~# grep mydestination /etc/postfix/main.cf
mydestination = localhost
root@dur:~#
root@dur:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 dur.bounceme.net ESMTP Postfix (Ubuntu)
ehlo lcl
250-dur.bounceme.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:a...@dur.bounceme.net
250 2.1.0 Ok
rcpt to:thu...@dur.bounceme.net
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: will this spool?
that would be nice.
.
250 2.0.0 Ok: queued as 14C6E182CA7
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@dur:~#
root@dur:~# tail -50 /var/log/mail.log
...
Aug 28 02:40:54 dur postfix/postfix-script[22383]: starting the Postfix
mail system
Aug 28 02:40:54 dur postfix/master[22384]: daemon started -- version
2.9.1, configuration /etc/postfix
Aug 28 02:40:57 dur postfix/smtpd[22388]: error: open database
/var/lib/mailman/data/aliases.db: No such file or directory
Aug 28 02:40:57 dur postfix/smtpd[22388]: connect from localhost[127.0.0.1]
Aug 28 02:42:12 dur postfix/smtpd[22388]: 14C6E182CA7:
client=localhost[127.0.0.1]
Aug 28 02:42:34 dur postfix/cleanup[22395]: 14C6E182CA7:
message-id=<20120828094212.14c6e182...@dur.bounceme.net>
Aug 28 02:42:34 dur postfix/qmgr[22386]: 14C6E182CA7:
from=<a...@dur.bounceme.net>, size=353, nrcpt=1 (queue active)
Aug 28 02:42:35 dur postfix/pipe[22396]: 14C6E182CA7:
to=<thu...@dur.bounceme.net>, relay=mailman, delay=38,
delays=38/0.03/0/0.41, dsn=5.1.1, status=bounced (user unknown)
Aug 28 02:42:35 dur postfix/cleanup[22395]: 10FC8182CE7:
message-id=<20120828094235.10fc8182...@dur.bounceme.net>
Aug 28 02:42:35 dur postfix/qmgr[22386]: 10FC8182CE7: from=<>,
size=2119, nrcpt=1 (queue active)
Aug 28 02:42:35 dur postfix/bounce[22398]: 14C6E182CA7: sender
non-delivery notification: 10FC8182CE7
Aug 28 02:42:35 dur postfix/qmgr[22386]: 14C6E182CA7: removed
Aug 28 02:42:35 dur postfix/pipe[22396]: 10FC8182CE7:
to=<a...@dur.bounceme.net>, relay=mailman, delay=0.4, delays=0.11/0/0/0.29,
dsn=5.1.1, status=bounced (user unknown)
Aug 28 02:42:35 dur postfix/qmgr[22386]: 10FC8182CE7: removed
Aug 28 02:43:00 dur postfix/smtpd[22388]: disconnect from
localhost[127.0.0.1]
root@dur:~#
This sorta kinda works, in that at least the message is "accepted",
although it's later bounced. Why is the user unknown? To my mind, the
user should be known.
-Thufir