postfix mx backup for my costumer and smtp for my costumer
Hi ,
I have set up a postfix server for my costumers . It acts as mx and smtp gateway . the smtp gateway works , but mx backup said : relay access denied . I rented a dedicated server for it so i have just only one public_ip my main.cf inet_interfaces = all lmtp_pix_workaround_delay_time = 10s lmtp_pix_workaround_threshold_time = 500s local_recipient_maps = local_transport = error:local mail delivery is disabled mydestination = myhostname = smtp.x.com mynetworks = localhost.localdomain 127.0.0.0/8 my_ip_static_dedicated_server static_ip_from_mycostumer static_ip_from_mycostumer2 static_ip_from_mycostumer2 myorigin = c.com smtp_pix_workaround_delay_time = 10s smtp_pix_workaround_threshold_time = 500s smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, permit_mx_backup transport_maps = hash:/etc/postfix/transport My transport file customer1.com smtp:mx.customer1.com customer2.com smtp:mx2.customer2.com ... My master.cf smtp inet n - - - - smtpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp -o smtp_fallback_relay= showq unix n - - - - showq error unix - - - - - error showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard #local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} Have you got any ideas ? THanks :) Ps: I know, i must set up sasl for gateway smtp but it's the next step :Pengy: |
i think you should add domain names to mydestination = directive (separate by spaces) and restart postfix.
ex: mydestination = abc.com def.com |
All times are GMT -5. The time now is 08:15 AM. |