LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Postfix mail forwarding loop (https://www.linuxquestions.org/questions/linux-networking-3/postfix-mail-forwarding-loop-322800/)

lacerto 05-12-2005 12:49 PM

Postfix mail forwarding loop
 
I recently setup a postfix server, and though it works most of the time, it seems to reject incoming mail from some addresses...and I simply don't understand why it's so selective. I've avoided setting up a mail server all these years, as it's always looked 'orribly complicated - looks like I'm right. Any help would be hugely appreciated.

My mail log, main.cf and virtual are below:

mail log:
Code:

May 12 15:05:16 myserver postfix/smtpd[27859]: DB64F134A2: client=localhost[127.0.0.1]
May 12 15:05:16 myserver postfix/cleanup[27862]: DB64F134A2: message-id=<20050512134407.ZLO2152.myfriendsisp@mail.myfriendsisp.com>
May 12 15:05:16 myserver postfix/qmgr[27372]: DB64F134A2: from=<me@localhost.mydomain.com>, size=3092, nrcpt=1 (queue active)
May 12 15:05:17 myserver postfix/local[27863]: DB64F134A2: to=<me@localhost.mydomain.com>, orig_to=<me@localhost>, relay=local, delay=1, status=SOFTBOUNCE (mail forwarding loop for me@localhost.mydomain.com)
May 12 15:38:19 myserver postfix/qmgr[27372]: DB64F134A2: from=<me@localhost.mydomain.com>, size=3092, nrcpt=1 (queue active)
May 12 15:38:19 myserver postfix/local[27918]: DB64F134A2: to=<me@localhost.mydomain.com>, orig_to=<me@localhost>, relay=local, delay=1983, status=SOFTBOUNCE (mail forwarding loop for me@localhost.mydomain.com)
May 12 16:11:39 myserver postfix/qmgr[27372]: DB64F134A2: from=<me@localhost.mydomain.com>, size=3092, nrcpt=1 (queue active)
May 12 16:11:39 myserver postfix/local[27985]: DB64F134A2: to=<me@localhost.mydomain.com>, orig_to=<me@localhost>, relay=local, delay=3983, status=SOFTBOUNCE (mail forwarding loop for me@localhost.mydomain.com)
May 12 17:18:19 myserver postfix/qmgr[27372]: DB64F134A2: from=<me@localhost.mydomain.com>, size=3092, nrcpt=1 (queue active)
May 12 17:18:19 myserver postfix/local[28118]: DB64F134A2: to=<me@localhost.mydomain.com>, orig_to=<me@localhost>, relay=local, delay=7983, status=SOFTBOUNCE (mail forwarding loop for me@localhost.mydomain.com)

main.cf
Code:

myhostname = localhost
myorigin = $mydomain
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_maps = 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 = myserver.mydomain.com
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains = mydomain.com
mydestination = $myhostname,localhost.$mydomain,$mydomain
defer_transports =
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
virtual_alias_maps = hash:/etc/postfix/virtual

virtual (to make sure all mail is directed to me)
Code:

###########
# Catch all
###########
@mydomain.com  me


L

fluoline 06-01-2005 06:07 PM

try to add a line to your virtual like:
mydomain anything

I guess this is needed for postfix to know that mail for mydomain can be deliverd localy.

Jeroen


All times are GMT -5. The time now is 04:50 PM.