List Info

Thread: Postfix 'loops back to myself' situation




Postfix 'loops back to myself' situation
user name
2006-07-26 15:42:44
Hello everyone,

 I am trying to put in place a Postfix+amavisd maia solution
but I am
having an issue with postfix. I have followed the guidelines
for
setting up a content filter amavisd on postfix by reading
the
README.postfix .

 My test domain has the lowest MX pointing to the maia box
but at the
time of reinjection, postfix seems to dns lookup again and
will not
forward the e-mail to the final destination box which is
informed with
an IP address, thus bouncing it with the following:

 Jul 26 16:12:12 mail postfix/smtp[5824]: B92D33BE9C:
to=<someonemydomain.com>, relay=none, delay=0,
status=bounced (mail
for mydomain.com  loops back to myself)

 I have the following to control relaying on postfix:

 relay_domains = /etc/postfix/relay_domains
 smtpd_recipient_restrictions = check_relay_domains

 Since this is only hapenning at the time of reinjection,
here is the
master.cf I am using:

 smtp-amavis unix -      -       y       -       2  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

 localhost:10025 inet n  -       y       -       2      
smtpd
    -o content_filter=
    -o myhostname=localhost.myhost.com
    -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 smtpd_error_sleep_time=0
   -o smtpd_soft_error_limit=1001
   -o smtpd_hard_error_limit=1000
   -o smtpd_client_connection_count_limit=0
   -o smtpd_client_connection_rate_limit=0
   -o
receive_override_options=no_unknown_recipient_checks,no_head
er_body_checks
   -o smtpd_authorized_xforward_hosts=127.0.0.0/8


I had this working perfectly with qmail, btw.

Thank you in advance,

Cass Surek
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Postfix 'loops back to myself' situation
user name
2006-07-26 15:56:40
On Wed, 2006-07-26 at 12:42 -0300, Cass Surek wrote:

>  localhost:10025 inet n  -       y       -       2     
 smtpd

This is where you need the "-o
disable_dns_lookups=yes" argument.

--Greg


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Postfix 'loops back to myself' situation
user name
2006-07-26 17:06:52
>Hello everyone,
>
>  I am trying to put in place a Postfix+amavisd maia
solution but I am
>having an issue with postfix. I have followed the
guidelines for
>setting up a content filter amavisd on postfix by
reading the
>README.postfix .
>
>  My test domain has the lowest MX pointing to the maia
box but at the
>time of reinjection, postfix seems to dns lookup again
and will not
>forward the e-mail to the final destination box which is
informed with
>an IP address, thus bouncing it with the following:
>
>  Jul 26 16:12:12 mail postfix/smtp[5824]: B92D33BE9C:
>to=<someonemydomain.com>, relay=none, delay=0,
status=bounced (mail
>for mydomain.com  loops back to myself)
>
>  I have the following to control relaying on postfix:
>
>  relay_domains = /etc/postfix/relay_domains
>  smtpd_recipient_restrictions = check_relay_domains
>

You need to define the next-hop server(s) in a transport map
(for each of 
the domains in relay_domains). This will override the DNS
settings.

transport_maps = hash:/etc/postfix/transport

contents of /etc/postfix/transport:
example.com smtp:[666.666.666.666]
example2.com smtp:[host.example2.com]

postmap /etc/postfix/transport
postfix reload

Gary V

____________________________________________________________
_____
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/di
rect/01/

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Postfix 'loops back to myself' situation
user name
2006-07-26 17:18:35
>>  I have the following to control relaying on
postfix:
>>
>>  relay_domains = /etc/postfix/relay_domains
>>  smtpd_recipient_restrictions = check_relay_domains
>>

BTW, check_relay_domains is not used any more. This should
instead be:

smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_desitnation

In your case the domains listed in relay_domains are
authorized 
destinations. Other than clients listed in $mynetworks
(which will be able 
to relay mail through your server), this will reject mail to
domains not 
listed in your relay_domains.

Gary V

____________________________________________________________
_____
Is your PC infected? Get a FREE online computer virus scan
from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=
3963

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Postfix 'loops back to myself' situation
user name
2006-07-26 17:25:52
>BTW, check_relay_domains is not used any more.

Since 2.0 that is.

____________________________________________________________
_____
Express yourself instantly with MSN Messenger! Download
today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471
ave/direct/01/

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )