View Single Post
  #1 (permalink)  
Old 07-09-2009, 06:02 AM
thinice thinice is offline
Member
 
Join Date: Oct 2006
Posts: 81
Default Relay to other smtp server

Mkay - so my vps is setup for 'xxx.org'.
I want to route all smtp from 'xxx.org' to smtp 'vmx.xxx.net'.

I'm running postfix with the following main.cf:
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
myhostname = xxx.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost = vmx.xxx.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
Now, my php script is sending an email to blah@xxx.org:
Code:
postfix/pickup[6695]: 0A3F11C2B8: uid=33 from=<www-data>
postfix/cleanup[6703]: 0A3F11C2B8: message-id=<20090709045521.0A3F11C2B8@xxx.org>
postfix/qmgr[6694]: 0A3F11C2B8: from=<www-data@xxx.org>, size=477, nrcpt=1 (queue active)
postfix/smtp[6705]: 0A3F11C2B8: to=<blah@xxx.org>, relay=vmx.xxx.net[66.xxx.xxx.1
9]:25], delay=4.8, delays=0.15/0.01/0.62/4, dsn=2.0.0, status=sent (250 OK)
postfix/qmgr[6694]: 0A3F11C2B8: removed

This makes it look like it's being delivered ok... but it isn't, any ideas?

Last edited by thinice; 07-09-2009 at 06:04 AM.
Reply With Quote