LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-12-2005, 01:49 PM   #1
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
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

Last edited by lacerto; 05-12-2005 at 02:15 PM.
 
Old 06-01-2005, 07:07 PM   #2
fluoline
LQ Newbie
 
Registered: Jun 2005
Location: Belgium
Posts: 11

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 01:10 PM
Forwarding incoming mail (postfix) herc Linux - Software 3 03-09-2007 05:43 PM
Postfix Mail Loop dlublink Linux - Networking 0 12-30-2004 05:15 PM
Forwarding mail through Postfix Phaethar Linux - Networking 0 03-01-2004 09:00 AM
Postfix-spamassassin mail loop problem Pcghost Linux - Software 5 06-17-2003 06:55 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration