LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-04-2008, 04:08 AM   #1
rcaamer
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Unhappy 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
 
Old 06-04-2008, 12:48 PM   #2
sunethj
Member
 
Registered: Nov 2006
Posts: 97

Rep: Reputation: 16
i think you should add domain names to mydestination = directive (separate by spaces) and restart postfix.

ex: mydestination = abc.com def.com
 
  


Reply



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
SMTP with POSTFIX shipon_97 Linux - Newbie 2 05-02-2006 03:33 PM
Postfix - Using for SMTP wfernley Linux - Newbie 3 12-29-2005 08:22 AM
Postfix and SMTP Phaethar Linux - Software 0 03-09-2004 08:29 AM
postfix smtp bas_vdl Linux - Networking 0 10-19-2003 04:24 PM
Help with Postfix and SMTP????? graystarr Linux - Software 1 03-10-2003 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration