Re: postfix in a courier proxy cluster wont deliver mails to remote hosts (loops back) @test.local has accounts on both machines, We think when it says  "postfix/smtp[25324]: 264F71B3004B: to=, relay=none, delay=0.04, delays=0.02/0.01/0.01/0, dsn=5.4.6, status=bounced (mail for backend-A1.fra1.mailcluster loops back to myself)" it is missing the right transport, because he knows the mail belongs here, but dont know how to deliver. You sauis something about transport entry, should i be something like loca_tranport = ? thx On Mon, Feb 11, 2008 at 10:39 AM, mouss  wrote: > > rupert wrote: >  > Hello, >  > >  > i sat up a courier proxy cluster with 2 severs, the courier forwards >  > the requests to the right servers. >  > When I now try to deliver an email, with a client that is connected to >  > a local serves, to the remote server >  > the mail never shows up in the mailbox, also the logfiles say >  > something about a non-delivery-notifcation that >  > doesnt show up either. >  > The postfix setup and courier worked fine when each server was standalone. >  > >  > hope someone can help me >  > >  > Heiko >  > >  > >  > these are the entries from the logifle: >  > >  > ----------------- >  > Feb 11 08:49:35 backend-B1 postfix/qmgr[6026]: AB7DED706E0: >  > from=, size=1245, nrcpt=1 (queue active) >  > Feb 11 08:49:35 backend-B1 postfix/smtpd[6200]: connect from unknown[127.0.0.1] >  > Feb 11 08:49:35 backend-B1 postfix/smtpd[6200]: AB7DED706E0: >  > client=unknown[127.0.0.1] >  > Feb 11 08:49:35 backend-B1 postfix/cleanup[6193]: AB7DED706E0: >  > message-id=<43i02bzz.2809007@test.local> >  > Feb 11 08:49:35 backend-B1 postfix/qmgr[6026]: AB7DED706E0: >  > from=, size=1245, nrcpt=1 (queue active) >  > Feb 11 08:49:35 backend-B1 amavis[5300]: (05300-03) Passed CLEAN, >  > [11.11.11.11] [11.11.11.11]  -> , >  > Message-ID: <43i02bzz.2809007@test.local>, mail_id: mGQuxzCDNloJ, >  > Hits: 2.71, size: 593, queued_as: AB7DED706E0, 4606 ms >  > Feb 11 08:49:35 backend-B1 postfix/smtp[6194]: 11F56D706AD: >  > to=, relay=127.0.0.1[127.0.0.1]:10024, delay=4.7, >  > delays=0.07/0.01/0/4.6, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued >  > as AB7DED706E0) >  > Feb 11 08:49:35 backend-B1 postfix/qmgr[6026]: 11F56D706AD: removed >  > Feb 11 08:49:35 backend-B1 postfix/smtpd[6200]: disconnect from >  > unknown[127.0.0.1] >  > Feb 11 08:49:36 backend-B1 postfix/smtp[6202]: AB7DED706E0: >  > to=, >  > relay=backend-A1.fra1.mailcluster[172.20.1.101]:25, delay=0.42, >  > delays=0.02/0.02/0.03/0.35, dsn=2.0.0, status=sent (250 2.0.0 Ok: >  > queued as EDD611B30049) >  > Feb 11 08:49:36 backend-B1 postfix/qmgr[6026]: AB7DED706E0: removed >  > Feb 11 08:49:37 backend-B1 postfix/smtpd[6186]: connect from >  > backend-A1.fra1.mailcluster[172.20.1.101] >  > Feb 11 08:49:37 backend-B1 postfix/smtpd[6186]: 11E35D706AD: >  > client=backend-A1.fra1.mailcluster[172.20.1.101] >  > Feb 11 08:49:37 backend-B1 postfix/cleanup[6193]: 11E35D706AD: >  > message-id=<13889510855364.521388n5108j@backend-A1.fra1.mailcluster> >  > Feb 11 08:49:37 backend-B1 postfix/qmgr[6026]: 11E35D706AD: from=<>, >  > size=4158, nrcpt=1 (queue active) >  > Feb 11 08:49:37 backend-B1 postfix/smtpd[6186]: disconnect from >  > backend-A1.fra1.mailcluster[172.20.1.101] >  > Feb 11 08:49:38 backend-B1 postfix/smtpd[6200]: connect from unknown[127.0.0.1] >  > Feb 11 08:49:38 backend-B1 postfix/smtpd[6200]: 5AD2BD706E0: >  > client=unknown[127.0.0.1] >  > Feb 11 08:49:38 backend-B1 postfix/cleanup[6193]: 5AD2BD706E0: >  > message-id=<13889510855364.521388n5108j@backend-A1.fra1.mailcluster> >  > Feb 11 08:49:38 backend-B1 postfix/qmgr[6026]: 5AD2BD706E0: from=<>, >  > size=4894, nrcpt=1 (queue active) >  > Feb 11 08:49:38 backend-B1 postfix/smtpd[6200]: disconnect from >  > unknown[127.0.0.1] >  > Feb 11 08:49:38 backend-B1 amavis[5299]: (05299-04) Passed CLEAN, >  > MYNETS LOCAL [172.20.1.101] [172.20.1.101] <> -> , >  > Message-ID: <13889510855364.521388n5108j@backend-A1.fra1.mailcluster>, >  > mail_id: JAuZAKW3QtWz, Hits: 3.895, size: 4158, queued_as: >  > 5AD2BD706E0, 1262 ms >  > Feb 11 08:49:38 backend-B1 postfix/smtp[6194]: 11E35D706AD: >  > to=, relay=127.0.0.1[127.0.0.1]:10024, delay=1.4, >  > delays=0.11/0/0/1.3, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as >  > 5AD2BD706E0) >  > Feb 11 08:49:38 backend-B1 postfix/qmgr[6026]: 11E35D706AD: removed >  > Feb 11 08:49:38 backend-B1 postfix/smtp[6202]: 5AD2BD706E0: >  > to=, relay=none, delay=0.06, delays=0.06/0/0/0, >  > dsn=5.4.6, status=bounced (mail for backend-B1.fra1.mailcluster loops >  > back to myself) >  > > >  it says it here: mail for backend-B1.... loops back to myself. where >  should mail for @test.local be delivered? If it's on this postfix, then >  you'll need to add test.local to mydestination. Otherwise, you'll need >  to configure a transport entry or configure DNS correctly. > >  also, check whether you need proxy_interfaces. > > > > > >  > Feb 11 08:49:38 backend-B1 postfix/qmgr[6026]: 5AD2BD706E0: removed >  > ----------------- >  > ----------------- >  > Feb 11 08:45:40 backend-A1 authdaemond: authmysql: clearpasswd=, >  > passwd=/o.Qxvasj8osI >  > Feb 11 08:45:40 backend-A1 authdaemond: Authenticated: >  > sysusername=, sysuserid=5000, sysgroupid=5000, >  > homedir=/home/vmail, zvbwyse=msfds@example.local, fullname=, >  > maildir=example.local/sales/, quota=10485760, >  > options=mailhost=backend-A1.fra1.mailcluster >  > Feb 11 08:45:40 backend-A1 authdaemond: Authenticated: >  > clearpasswd=secret, passwd=/o.Qxvasj8osI >  > Feb 11 08:45:40 backend-A1 imapd: Proxy host >  > backend-A1.fra1.mailcluster is me, normal login. >  > Feb 11 08:45:40 backend-A1 imapd: LOGIN, negq=sdcym@example.local, >  > ip=[::ffff:172.20.2.101], port=[45090], protocol=IMAP >  > Feb 11 08:46:15 backend-A1 postfix/smtpd[25307]: connect from >  > backend-B1.fra1.mailcluster[172.20.2.101] >  > Feb 11 08:46:15 backend-A1 postfix/smtpd[25307]: EDD611B30049: >  > client=backend-B1.fra1.mailcluster[172.20.2.101] >  > Feb 11 08:46:15 backend-A1 postfix/cleanup[25315]: EDD611B30049: >  > message-id=<43i02bzz.2809007@test.local> >  > Feb 11 08:46:16 backend-A1 postfix/qmgr[25149]: EDD611B30049: >  > from=, size=1469, nrcpt=1 (queue active) >  > Feb 11 08:46:16 backend-A1 postfix/smtpd[25307]: disconnect from >  > backend-B1.fra1.mailcluster[172.20.2.101] >  > Feb 11 08:46:17 backend-A1 postfix/smtpd[25322]: connect from unknown[127.0.0.1] >  > Feb 11 08:46:17 backend-A1 postfix/smtpd[25322]: 264F71B3004B: >  > client=unknown[127.0.0.1] >  > Feb 11 08:46:17 backend-A1 postfix/cleanup[25315]: 264F71B3004B: >  > message-id=<43i02bzz.2809007@test.local> >  > Feb 11 08:46:17 backend-A1 postfix/qmgr[25149]: 264F71B3004B: >  > from=, size=1944, nrcpt=1 (queue active) >  > Feb 11 08:46:17 backend-A1 postfix/smtpd[25322]: disconnect from >  > unknown[127.0.0.1] >  > Feb 11 08:46:17 backend-A1 amavis[24510]: (24510-02) Passed CLEAN, >  > MYNETS LOCAL [172.20.2.101] [11.11.11.11]  -> >  > , Message-ID: <43i02bzz.2809007@test.local>, >  > mail_id: adAz2tAJG8iw, Hits: 2.985, size: 1469, queued_as: >  > 264F71B3004B, 903 ms >  > Feb 11 08:46:17 backend-A1 postfix/smtp[25317]: EDD611B30049: >  > to=, relay=127.0.0.1[127.0.0.1]:10024, delay=1.2, >  > delays=0.32/0.01/0/0.9, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued >  > as 264F71B3004B) >  > Feb 11 08:46:17 backend-A1 postfix/qmgr[25149]: EDD611B30049: removed >  > Feb 11 08:46:17 backend-A1 postfix/smtp[25324]: 264F71B3004B: >  > to=, relay=none, delay=0.04, >  > delays=0.02/0.01/0.01/0, dsn=5.4.6, status=bounced (mail for >  > backend-A1.fra1.mailcluster loops back to myself) >  > Feb 11 08:46:17 backend-A1 postfix/cleanup[25315]: 342721B3008A: >  > message-id=<13889510855364.521388n5108j@backend-A1.fra1.mailcluster> >  > Feb 11 08:46:17 backend-A1 postfix/qmgr[25149]: 342721B3008A: from=<>, >  > size=3936, nrcpt=1 (queue active) >  > Feb 11 08:46:17 backend-A1 postfix/bounce[25325]: 264F71B3004B: sender >  > non-delivery notification: 342721B3008A >  > Feb 11 08:46:17 backend-A1 postfix/qmgr[25149]: 264F71B3004B: removed >  > Feb 11 08:46:17 backend-A1 postfix/smtp[25324]: 342721B3008A: >  > to=, >  > relay=backend-B1.fra1.mailcluster[172.20.2.101]:25, delay=0.14, >  > delays=0.02/0/0/0.12, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as >  > 11E35D706AD) >  > Feb 11 08:46:17 backend-A1 postfix/qmgr[25149]: 342721B3008A: removed >  > Feb 11 08:46:28 backend-A1 imapd: DISCONNECTED, >  > negq=sdcym@example.local, ip=[::ffff:172.20.2.101], headers=0, body=0, >  > rcvd=75, sent=660, time=48 >  > >  > ----------------- >  >  postconf -n >  > ----------------- >  > alias_database = hash:/etc/aliases >  > alias_maps = hash:/etc/aliases >  > broken_sasl_auth_clients = yes >  > command_directory = /usr/sbin >  > config_directory = /etc/postfix >  > content_filter = amavis:[127.0.0.1]:10024 >  > daemon_directory = /usr/libexec/postfix >  > debug_peer_level = 2 >  > html_directory = no >  > inet_interfaces = all >  > mail_owner = postfix >  > mailq_path = /usr/bin/mailq.postfix >  > manpage_directory = /usr/share/man >  > mydestination = backend-B1.fra1.mailcluster, localhost, >  > localhost.localdomain backend-B1, 172.20.2.101 >  > myhostname = backend-B1.fra1.mailcluster >  > mynetworks = 127.0.0.0/8 >  > newaliases_path = /usr/bin/newaliases.postfix >  > proxy_read_maps = $local_recipient_maps $mydestination >  > $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps >  > $virtual_mailbox_domains $relay_recipient_maps $relay_domains >  > $canonical_maps $sender_canonical_maps $recipient_canonical_maps >  > $relocated_maps $transport_maps $mynetworks >  > $virtual_mailbox_limit_maps >  > queue_directory = /var/spool/postfix >  > readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES >  > receive_override_options = no_address_mappings >  > sample_directory = /usr/share/doc/postfix-2.3.3/samples >  > sendmail_path = /usr/sbin/sendmail.postfix >  > setgid_group = postdrop >  > smtpd_recipient_restrictions = permit_mynetworks, >  > permit_sasl_authenticated, reject_unauth_destination >  > smtpd_sasl_auth_enable = yes >  > smtpd_tls_cert_file = /etc/postfix/smtpd.cert >  > smtpd_tls_key_file = /etc/postfix/smtpd.key >  > smtpd_use_tls = yes >  > transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf, >  > proxy:mysql:/etc/postfix/mysql-virtual_mailhosts.cf >  > unknown_local_recipient_reject_code = 550 >  > virtual_alias_domains = >  > virtual_alias_maps = >  > proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, >  > mysql:/etc/postfix/mysql-virtual_email2email.cf >  > virtual_create_maildirsize = yes >  > virtual_gid_maps = static:5000 >  > virtual_mailbox_base = /home/vmail >  > virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf >  > virtual_mailbox_limit_maps = >  > proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf >  > virtual_mailbox_limit_override = yes >  > virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf >  > virtual_maildir_limit_message = "The user you are trying to reach is >  > over quota." >  > virtual_overquota_bounce = yes >  > virtual_uid_maps = static:5000 >  > >  > ----------------- >  > mysql-virtual_mailhosts.cf >  > ----------------- >  > user = mail_admin >  > password = mail_admin_password >  > dbname = mail >  > # query = SELECT CONCAT('smtp:[',mailhost_ip,']') FROM users WHERE email='%s' >  > query = SELECT mailhost FROM users WHERE email='%s' >  > result_format = smtp:[%s] >  > hosts = backend-A1.fra1.mailcluster >  > >  > ----------------- >  > master.cf >  > ----------------- >  > # >  > # Postfix master process configuration file.  For details on the format >  > # of the file, see the master(5) manual page (command: "man 5 master"). >  > # >  > # ========================================================================== >  > # service type  private unpriv  chroot  wakeup  maxproc command + args >  > #               (yes)   (yes)   (yes)   (never) (100) >  > # ========================================================================== >  > smtp      inet  n       -       n       -       -       smtpd >  > #submission inet n       -       n       -       -       smtpd >  > #  -o smtpd_enforce_tls=yes >  > #  -o smtpd_sasl_auth_enable=yes >  > #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject >  > #smtps     inet  n       -       n       -       -       smtpd >  > #  -o smtpd_tls_wrappermode=yes >  > #  -o smtpd_sasl_auth_enable=yes >  > #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject >  > #628      inet  n       -       n       -       -       qmqpd >  > pickup    fifo  n       -       n       60      1       pickup >  > cleanup   unix  n       -       n       -       0       cleanup >  > qmgr      fifo  n       -       n       300     1       qmgr >  > #qmgr     fifo  n       -       n       300     1       oqmgr >  > tlsmgr    unix  -       -       n       1000?   1       tlsmgr >  > rewrite   unix  -       -       n       -       -       trivial-rewrite >  > bounce    unix  -       -       n       -       0       bounce >  > defer     unix  -       -       n       -       0       bounce >  > trace     unix  -       -       n       -       0       bounce >  > verify    unix  -       -       n       -       1       verify >  > flush     unix  n       -       n       1000?   0       flush >  > proxymap  unix  -       -       n       -       -       proxymap >  > smtp      unix  -       -       n       -       -       smtp >  > # When relaying mail as backup MX, disable fallback_relay to avoid MX loops >  > relay     unix  -       -       n       -       -       smtp >  >         -o fallback_relay= >  > #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 >  > showq     unix  n       -       n       -       -       showq >  > error     unix  -       -       n       -       -       error >  > discard   unix  -       -       n       -       -       discard >  > local     unix  -       n       n       -       -       local >  > virtual   unix  -       n       n       -       -       virtual >  > lmtp      unix  -       -       n       -       -       lmtp >  > anvil     unix  -       -       n       -       1       anvil >  > scache    unix  -       -       n       -       1       scache >  > # >  > # ==================================================================== >  > # Interfaces to non-Postfix software. Be sure to examine the manual >  > # pages of the non-Postfix software to find out what options it wants. >  > # >  > # Many of the following services use the Postfix pipe(8) delivery >  > # agent.  See the pipe(8) man page for information about ${recipient} >  > # and other message envelope options. >  > # ==================================================================== >  > # >  > # maildrop. See the Postfix MAILDROP_README file for details. >  > # Also specify in main.cf: maildrop_destination_recipient_limit=1 >  > # >  > maildrop  unix  -       n       n       -       -       pipe >  >   flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} >  > # >  > # The Cyrus deliver program has changed incompatibly, multiple times. >  > # >  > old-cyrus unix  -       n       n       -       -       pipe >  >   flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m >  > ${extension} ${user} >  > # Cyrus 2.1.5 (Amos Gouaux) >  > # Also specify in main.cf: cyrus_destination_recipient_limit=1 >  > cyrus     unix  -       n       n       -       -       pipe >  >   user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m >  > ${extension} ${user} >  > # >  > # See the Postfix UUCP_README file for configuration details. >  > # >  > uucp      unix  -       n       n       -       -       pipe >  >   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) >  > # >  > # Other external delivery methods. >  > # >  > 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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient >  > >  > # amavis >  > amavis unix - - - - 2 smtp >  >         -o smtp_data_done_timeout=1200 >  >         -o smtp_send_xforward_command=yes >  > >  > 127.0.0.1:10025 inet n - - - - smtpd >  >         -o content_filter= >  >         -o local_recipient_maps= >  >         -o relay_recipient_maps= >  >         -o smtpd_restriction_classes= >  >         -o smtpd_client_restrictions= >  >         -o smtpd_helo_restrictions= >  >         -o smtpd_sender_restrictions= >  >         -o smtpd_recipient_restrictions=permit_mynetworks,reject >  >         -o mynetworks=127.0.0.0/8 >  >         -o strict_rfc821_envelopes=yes >  >         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks >  >         -o smtpd_bind_address=127.0.0.1 >  > > >