HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Postfix & mail forwarding loop (http://www.howtoforge.com/forums/showthread.php?t=8096)

varnik 11th November 2006 12:38

Postfix & mail forwarding loop
 
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

<support@brzen.de>: mail forwarding loop for support@brzen.de

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. :(

till 11th November 2006 13:46

Have you added a forward for the user support in ISPConfig?

varnik 11th November 2006 17:06

Sorry, a false topic. I don't use ISPConfig. Could you move my question in the proper thread?

falko 12th November 2006 15:42

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?

varnik 12th November 2006 22:25

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.

falko 13th November 2006 16:25

What's in /etc/postfix/virtual, /etc/postfix/transport, /etc/postfix/relocated, /etc/postfix/canonical, and /etc/postfix/sender_canonical

varnik 13th November 2006 19:51

The content in these files is commented out.

falko 14th November 2006 15:17

Please post the output of
Code:

ls -la /etc/postfix
and
Code:

grep support /etc/passwd

varnik 15th November 2006 09:06

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.

varnik 21st November 2006 13:30

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 a10@brzen.de to the user support@brzen.de.
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=<001001c70d62$619f3b90$1b01a8c0@brzedom.brzen.de>
Nov 21 12:42:39 mail postfix/qmgr[2984]: 56FE9105D: from=<a10@brzen.de>, 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=<001001c70d62$619f3b90$1b01a8c0@brzdom.brzen.de>
Nov 21 12:42:57 mail postfix/qmgr[2984]: D62C0104E: from=<a10@brzen.de>, 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] <a10@brzen.de> -> <support@brzen.de>, Message-ID: <001001c70d62$619f3b90$1b01a8c0@brzedom.brzen.de>, mail_id: CwYa7HKCzsfq, Hits: -4.399, 18319 ms
Nov 21 12:42:58 mail postfix/local[2989]: D62C0104E: to=<support@brzen.de>, 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=<support@brzen.de>, 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=<001001c70d62$619f3b90$1b01a8c0@brzedom.brzen.de>
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=<a10@brzen.de>, 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=<001001c70d62$619f3b90$1b01a8c0@brzedom.brzen.de>
Nov 21 12:45:20 mail postfix/qmgr[2984]: 96FEC104F: from=<a10@brzen.de>, 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=<support@brzen.de>, relay=local, delay=1, status=bounced (mail forwarding loop for support@bzn.de)
Nov 21 12:45:21 mail postfix/cleanup[3011]: 47D10105B: message-id=<20061121114521.47D10105B@mail.brzen.de>
Nov 21 12:45:21 mail amavis[2577]: (02577-03) Passed CLEAN, [84.148.166.16] <a10@brzen.de> -> <support@brzen.de>, Message-ID: <001001c70d62$619f3b90$1b01a8c0@brzdom.brzn.de>, 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=<support@brzen.de>, 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=<a10@brzen.de>, 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?


All times are GMT +2. The time now is 02:39.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.