Hallo 2 all, since 3-4 weeks exists a problem with my postfix server under SuSE 10. One account recieves all incoming mails perfect. Only the sender recieves a mail that his mail is undeliverable. This is the Postfix program at host mail.brzen.de. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to <postmaster> If you do so, please include this problem report. You can delete your own text from the attached returned message. The Postfix program <[email protected]>: mail forwarding loop for [email protected] No aliases, no virtual users. All users exist in the linux system. All users except the user "support" have no the problem. The search in google has not helped.
You have a mail loop somewhere. What's in /etc/postfix/main.cf (please strip out the comments)? Do you use virtual users or system users for your email accounts?
Code: queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/lib/postfix mail_owner = postfix default_privs = nobody mydomain = brzen.de myorigin = $mydomain unknown_local_recipient_reject_code = 550 mynetworks = 212.34.160.79, 172.16.0.0/12, 127.0.0.0/8, 192.168.1.0/24 smtpd_banner = $myhostname ESMTP $mail_name debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = maildrop html_directory = /usr/share/doc/packages/postfix/html manpage_directory = /usr/share/man sample_directory = /usr/share/doc/packages/postfix/samples readme_directory = /usr/share/doc/packages/postfix/README_FILES inet_protocols = all biff = no mail_spool_directory = /var/mail canonical_maps = hash:/etc/postfix/canonical virtual_alias_maps = hash:/etc/postfix/virtual virtual_alias_domains = hash:/etc/postfix/virtual relocated_maps = hash:/etc/postfix/relocated transport_maps = hash:/etc/postfix/transport sender_canonical_maps = hash:/etc/postfix/sender_canonical masquerade_exceptions = root masquerade_classes = envelope_sender, header_sender, header_recipient myhostname = mail.brzen.de program_directory = /usr/lib/postfix inet_interfaces = all masquerade_domains = mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost defer_transports = mynetworks_style = subnet disable_dns_lookups = no I have system users without shell.
What's in /etc/postfix/virtual, /etc/postfix/transport, /etc/postfix/relocated, /etc/postfix/canonical, and /etc/postfix/sender_canonical
Code: total 338 drwxr-xr-x 2 root root 1120 Nov 13 08:39 . drwxr-xr-x 61 root root 5168 Nov 11 12:27 .. -rw-r--r-- 1 root root 11942 May 2 2006 LICENSE -rw-r--r-- 1 root root 1629 May 2 2006 TLS_LICENSE -rw-r--r-- 1 root root 15647 May 2 2006 access -rw-r--r-- 1 root root 12288 Jul 20 10:38 access.db -rw-r--r-- 1 root root 10947 May 2 2006 canonical -rw-r--r-- 1 root root 12288 Nov 11 10:40 canonical.db -rw-r--r-- 1 root root 449 May 2 2006 dynamicmaps.cf -rw-r--r-- 1 root root 9622 May 2 2006 generic -rw-r--r-- 1 root root 16393 May 2 2006 header_checks -rw-r--r-- 1 root root 27602 Nov 13 08:39 main.cf -rw-r--r-- 1 root root 27374 Jul 27 10:03 main.cf.SuSEconfig -rw-r--r-- 1 root root 122 May 2 2006 main.cf.default -rw-r--r-- 1 root root 970 May 2 2006 makedefs.out -rw-r--r-- 1 root root 4023 Oct 18 11:26 master.cf -rw-r--r-- 1 root root 4023 Oct 18 10:14 master.cf.1 -rw-r--r-- 1 root root 6741 Oct 18 11:26 master.cf.2 -rw-r--r-- 1 root root 4501 Jul 28 12:31 master.cf.new -rw-r--r-- 1 root root 4023 Jul 28 12:19 master.cf.orig -rw-r--r-- 1 root root 2255 May 2 2006 openssl_postfix.conf.in -rwxr-xr-x 1 root root 22018 May 2 2006 post-install -rw-r--r-- 1 root root 14561 May 2 2006 postfix-files -rwxr-xr-x 1 root root 6366 May 2 2006 postfix-script -rw-r--r-- 1 root root 199 May 2 2006 relay_ccerts -rw-r--r-- 1 root root 12288 Jul 20 10:38 relay_ccerts.db -rw-r--r-- 1 root root 6523 May 2 2006 relocated -rw-r--r-- 1 root root 12288 Jul 20 10:38 relocated.db -rw------- 1 root root 172 May 2 2006 sasl_passwd -rw------- 1 root root 12288 Jul 20 10:38 sasl_passwd.db -rw-r--r-- 1 root root 412 May 2 2006 sender_canonical -rw-r--r-- 1 root root 12288 Jul 20 10:38 sender_canonical.db -rw-r--r-- 1 root root 11033 May 2 2006 transport -rw-r--r-- 1 root root 12288 Jul 20 10:38 transport.db -rw-r--r-- 1 root root 11732 May 2 2006 virtual -rw-r--r-- 1 root root 12288 Nov 11 10:34 virtual.db Code: support:x:1000:100::/home/support:/bin/bash Hallo Falko, vielen Dank für deine Hilfe. Das Problem ist gelöst. Ich habe vermutlich vergessen, postmap nach der Änderung einer Datenbank-Datei aufzurufen.
The problem exists. The history is repeated. I have found strange lines in /var/log/mail. Code: #A client 192.168.1.27 tries to send a message as [email protected] to the user [email protected]. Nov 21 12:42:39 mail postfix/smtpd[2990]: connect from unknown[192.168.1.27] Nov 21 12:42:39 mail postfix/smtpd[2990]: 56FE9105D: client=unknown[192.168.1.27] Nov 21 12:42:39 mail postfix/cleanup[2988]: 56FE9105D: message-id=<[email protected]> Nov 21 12:42:39 mail postfix/qmgr[2984]: 56FE9105D: from=<[email protected]>, size=877, nrcpt=1 (queue active) Nov 21 12:42:39 mail postfix/smtpd[2990]: disconnect from unknown[192.168.1.27] # So the client is disconnected. # Postfix does his job Nov 21 12:42:57 mail postfix/smtpd[2985]: connect from localhost[127.0.0.1] Nov 21 12:42:57 mail postfix/smtpd[2985]: D62C0104E: client=localhost[127.0.0.1] Nov 21 12:42:57 mail postfix/cleanup[2988]: D62C0104E: message-id=<[email protected]> Nov 21 12:42:57 mail postfix/qmgr[2984]: D62C0104E: from=<[email protected]>, size=1274, nrcpt=1 (queue active) Nov 21 12:42:57 mail postfix/smtpd[2985]: disconnect from localhost[127.0.0.1] Nov 21 12:42:58 mail amavis[2578]: (02578-03) Passed CLEAN, [192.168.1.27] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: CwYa7HKCzsfq, Hits: -4.399, 18319 ms Nov 21 12:42:58 mail postfix/local[2989]: D62C0104E: to=<[email protected]>, relay=local, delay=1, status=sent (delivered to mailbox) Nov 21 12:42:58 mail postfix/qmgr[2984]: D62C0104E: removed Nov 21 12:42:58 mail postfix/smtp[2991]: 56FE9105D: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=19, status=sent (250 2.6.0 Ok, id=02578-03, from MTA([127.0.0.1]:10025): 250 Ok: queued as D62C0104E) Nov 21 12:42:58 mail postfix/qmgr[2984]: 56FE9105D: removed # The mail was proved by amavis and is just delivered. # This is a dynamic ip-address (with the dynamically given hostname) # The address doesn't exist in the configuration and # doesn't belong to our network. Nov 21 12:44:46 mail popper[3010]: (v4.0.8) Servicing request from "p5494a610.dip0.t-ipconnect.de" at 84.148.166.16 [pop_init.c:1239] Nov 21 12:44:55 mail popper[3010]: Stats: support 0 0 67 23861790 p5494a610.dip0.t-ipconnect.de 84.148.166.16 [pop_updt.c:301] Nov 21 12:44:57 mail postfix/smtpd[2990]: connect from mx.odn.de[212.34.160.79] Nov 21 12:44:58 mail postfix/smtpd[2990]: 8A81BC37: client=mx.odn.de[212.34.160.79] Nov 21 12:44:58 mail postfix/cleanup[3011]: 8A81BC37: message-id=<[email protected]> Nov 21 12:44:58 mail postfix/smtpd[2990]: disconnect from mx.odn.de[212.34.160.79] Nov 21 12:44:58 mail postfix/qmgr[2984]: 8A81BC37: from=<[email protected]>, size=2036, nrcpt=1 (queue active) Nov 21 12:45:20 mail postfix/smtpd[3038]: connect from localhost[127.0.0.1] Nov 21 12:45:20 mail postfix/smtpd[3038]: 96FEC104F: client=localhost[127.0.0.1] Nov 21 12:45:20 mail postfix/cleanup[3011]: 96FEC104F: message-id=<[email protected]> Nov 21 12:45:20 mail postfix/qmgr[2984]: 96FEC104F: from=<[email protected]>, size=2433, nrcpt=1 (queue active) Nov 21 12:45:20 mail postfix/smtpd[3038]: disconnect from localhost[127.0.0.1] Nov 21 12:45:21 mail postfix/local[3039]: 96FEC104F: to=<[email protected]>, relay=local, delay=1, status=bounced (mail forwarding loop for [email protected]) Nov 21 12:45:21 mail postfix/cleanup[3011]: 47D10105B: message-id=<[email protected]> Nov 21 12:45:21 mail amavis[2577]: (02577-03) Passed CLEAN, [84.148.166.16] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: XowjCsoSec9X, Hits: -2.56, 20441 ms Nov 21 12:45:21 mail postfix/qmgr[2984]: 47D10105B: from=<>, size=4075, nrcpt=1 (queue active) Nov 21 12:45:21 mail postfix/qmgr[2984]: 96FEC104F: removed Nov 21 12:45:21 mail postfix/smtp[3012]: 8A81BC37: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=24, status=sent (250 2.6.0 Ok, id=02577-03, from MTA([127.0.0.1]:10025): 250 Ok: queued as 96FEC104F) Nov 21 12:45:21 mail postfix/qmgr[2984]: 8A81BC37: removed Nov 21 12:45:22 mail postfix/local[3039]: 47D10105B: to=<[email protected]>, relay=local, delay=1, status=sent (delivered to mailbox) Nov 21 12:45:22 mail postfix/qmgr[2984]: 47D10105B: removed Why does this unknown client try to send this email? Relay is only for RELAYHOST=mx.odn.de open. What do i false? PS: I would speak german, because my english is poor. Will it be accepted?
Is there maybe a forwarding from support to a10 and then from a10 to support? Please try to post in English so that everyone can participate.
The account a10 is made only for test, because this is the only computer which I don't change permanent. For this account doesn't exist any forwarding. For user "support" IMHO also. I have checked all database configuration files in /etc/postfix. /etc/aliases is also by default. In what files can this loop "be configured"?
You can search for the string "support" in all the files on your system like this: Code: cd / grep -R support * Maybe you find the file where it is configured.
Hey, I am facing the same problem with the mail forwarding loop. In my case the message is The Postfix program <[email protected]>: mail forwarding loop for [email protected] The user1 has a .forward file in his home directory. Can this be a problem?