Contact SalesSitemapCustomer Login

Go Back   VPSlink Forums > Technical Discussion > E-Mail Hosting

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2009, 06:02 AM
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
  #2 (permalink)  
Old 07-09-2009, 10:50 AM
Senior Member
 
Join Date: Jun 2008
Posts: 209
Default

Quote:
Originally Posted by thinice View Post
This makes it look like it's being delivered ok... but it isn't, any ideas?
Looks like it is delivered to vmx.xxx.net successfully (status=sent (250 OK)), but you'll have to look in the mail logs on vmx.xxx.net to see what the mailsystem there does with it after receiving it. e.g. forwards it to another system, direct delivery to mailbox (which could forward to another mailbox) and so on.

check /etc/aliases on vmx.xxx.net for local mail aliases that may be in effect.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 03:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0