On 08/28/2012 03:44 AM, Ansgar Wiechers wrote:
On 2012-08-28 Thufir wrote:
>  http://askubuntu.com/a/155676/45156  says to remove $mydomain from
>
>  mydestination = $mydomain, localhost.$mydomain, localhost
>
>  but why?
As the answer says you should only do that when the host is not supposed
to be the final destination for $mydomain.


I'm not entirely sure whether the host should be the final destination for $mydomain or not, when it's put that way. I can say that any mail to the FQDN dur.bounceme.mail should stay on this machine.

I set mydestination back to the default:

root@dur:~#
root@dur:~# grep mydest /etc/postfix/main.cf
#mydestination = localhost,dur.bounceme.net
#mydestination = dur.bounceme.net, localhost.dur.bounceme.net, localhost
#mydestination = dur.bounceme.net
mydestination = $mydomain, localhost.$mydomain, localhost
root@dur:~#
root@dur:~# ll /etc/postfix/t*
-rw-r--r-- 1 root root    37 Aug 28 04:18 /etc/postfix/transport
-rw-r--r-- 1 root root 12288 Aug 28 02:04 /etc/postfix/transport.db
root@dur:~#
root@dur:~# cat /etc/postfix/transport
lists.dur.bounceme.net      mailman:
root@dur:~#
root@dur:~# grep lists.dur /etc/postfix/main.cf
relay_domains = lists.dur.bounceme.net
root@dur:~#
root@dur:~# postmap -v /etc/postfix/transport
postmap: name_mask: all
postmap: inet_addr_local: configured 2 IPv4 addresses
postmap: inet_addr_local: configured 2 IPv6 addresses
postmap: open hash /etc/postfix/transport
postmap: Compiled against Berkeley DB: 5.1.25?
postmap: Run-time linked against Berkeley DB: 5.1.25?
root@dur:~#
root@dur:~# postfix stop;postfix start
postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: starting the Postfix mail system
root@dur:~#
root@dur:~# telnet dur.bounceme.net 25
Trying 127.0.0.1...
Connected to dur.bounceme.net.
Escape character is '^]'.
220 dur.bounceme.net ESMTP Postfix (Ubuntu)
ehlo testing
250-dur.bounceme.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:al...@dur.bounceme.net
250 2.1.0 Ok
rcpt to:b...@dur.bounceme.net
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject:amazing
mailman is supposed to handle this?
as per the ubuntu guide.
.
250 2.0.0 Ok: queued as E0507184319
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@dur:~#
root@dur:~# tail /var/log/mail.log
Aug 28 04:23:59 dur postfix/smtp[5960]: 31B8B180537: to=<y...@dur.bounceme.net>, relay=none, delay=35, delays=34/0.02/1.6/0, dsn=4.4.1, status=deferred (connect to dur.bounceme.net[70.71.113.158]:25: Connection refused) Aug 28 04:24:00 dur postfix/smtpd[5954]: disconnect from localhost[127.0.0.1] Aug 28 04:27:10 dur postfix/smtpd[5981]: error: open database /var/lib/mailman/data/aliases.db: No such file or directory
Aug 28 04:27:10 dur postfix/smtpd[5981]: connect from localhost[127.0.0.1]
Aug 28 04:27:50 dur postfix/smtpd[5981]: E0507184319: client=localhost[127.0.0.1] Aug 28 04:28:36 dur postfix/cleanup[5984]: E0507184319: message-id=<20120828112750.e0507184...@dur.bounceme.net> Aug 28 04:28:36 dur postfix/qmgr[5952]: E0507184319: from=<al...@dur.bounceme.net>, size=391, nrcpt=1 (queue active) Aug 28 04:28:36 dur postfix/smtp[5985]: connect to dur.bounceme.net[70.71.113.158]:25: Connection refused Aug 28 04:28:36 dur postfix/smtp[5985]: E0507184319: to=<b...@dur.bounceme.net>, relay=none, delay=58, delays=58/0.02/0.06/0, dsn=4.4.1, status=deferred (connect to dur.bounceme.net[70.71.113.158]:25: Connection refused) Aug 28 04:28:38 dur postfix/smtpd[5981]: disconnect from localhost[127.0.0.1]
root@dur:~#


thanks for the help,

Thufir

Reply via email to