On Thu, Jan 20, 2011 at 2:40 PM, Noel Jones <njo...@megan.vbhcs.org> wrote:
> On 1/20/2011 12:15 PM, Cameron Smith wrote: > >> Hello, >> >> I have a VPS with postfix as my MTA. >> vps.sweetwise.com <http://vps.sweetwise.com> >> >> >> My MX is handled by another remote server and mail accounts >> for my domain are configured there. >> >> sweetwise.com <http://sweetwise.com>.3600INMX0 >> smtp.secureserver.net <http://smtp.secureserver.net>. >> sweetwise.com <http://sweetwise.com>.3600INMX10 >> mailstore1.secureserver.net <http://mailstore1.secureserver.net>. >> >> >> >> My VPS needs to send mail to people outside my domain and to >> accounts on my domain. >> >> I set the virtual_alias_domains and virtual_alias_maps entries >> in main.cf <http://main.cf> and populated the >> >> /etc/postfix/virtual file with this style entries: >> >> jo...@sweetwise.com <mailto:jo...@sweetwise.com>johng >> sweetwise.com <http://sweetwise.com>sweetwise.com >> <http://sweetwise.com> >> postmas...@sweetwise.com >> <mailto:postmas...@sweetwise.com>jo...@sweetwise.com >> <mailto:jo...@sweetwise.com> >> >> >> emails to domains other than this one are sending fine. >> Emails to my domain have the following entry in maillog but do >> not arrive at the remote mailserver. >> >> Jan 20 09:39:10 vps postfix/local[13436]: BE37CA6D1B16: >> to=<jo...@vps.sweetwise.com <mailto:jo...@vps.sweetwise.com>>, >> >> relay=local, delay=0.47, delays=0.03/0.01/0/0.43, dsn=2.0.0, >> status=sent (delivered to command: /usr/bin/procmail-wrapper >> -o -a $DOMAIN -d $LOGNAME >> >> What have I missed or mis configured? >> > > (it's a little hard to read your logs and config with all the HTML markup). > > You've configured vps.sweetwise.com as a local domain. If that mail > should be delivered somewhere else, then it's not a local domain. > > You've configured sweetwise.com in virtual_alias_domains. > Virtual_alias_domains are for domains that are rewritten to another domain > before delivery. If you don't want to rewrite this domain, then it doesn't > belong in virtual_alias_domains. > > You're rewriting jo...@sweetwise.com to jo...@vps.sweetwise.com, which > postfix delivers to the johng user on the local machine. > > You need to decide where the mail goes before you start trying to configure > postfix. > > > http://www.postfix.org/BASIC_CONFIGURATION_README.html > http://www.postfix.org/ADDRESS_CLASS_README.html > http://www.postfix.org/documentation.html > > > It *sounds* as if you want to relay sweetwise.com to the main MX, which > makes it a relay domain. In that case, you just do something like > # main.cf > myhostname = vps.sweetwise.com > mydestination = localhost $myhostname > virtual_alias_domains = > relay_domains = sweetwise.com > relay_recipient_maps = hash:/etc/postfix/relay_recipients > > # relay_recipients > jo...@sweetwise.com OK > u...@sweetwise.com OK > postmas...@sweetwise.com OK > ... > > > > > -- Noel Jones > Noel that is very very helpful to me and my further understanding of postfix relay setup. Thank you!!!! :)