robm writes:
> when I send email to rwm132@engr.usask.ca it ends up on port 25 of my
> server young , where it gets check against rbls and scanned if it makes
> it to the MTA
> I want the MTA to check its alias.db or virtual.db (which ever one is
> appropriate) and "rewrite " the envelope to rwm132@mail.usask.ca
>
> aliases
> rwm132: rwm132@mail.usask.ca
So this should actually just forward the mail, and not rewrite
anything...
> virtual
>
> rwm132 rwm132@mail.usask.ca
I think you'd need the full:
rwm132@engr.usask.ca rwm132@mail.usask.ca
for this to work.. but not sure...
> it might be that for the virtual db all I can do is
>
>
> @young.usask.ca @mail.usask.ca
Well... you probably need both:
@young.usask.ca @mail.usask.ca
@engr.usask.ca @mail.usask.ca
in there... And probably have to add:
virtual_alias_domains = young.usask.ca.engr.usask.ca
to main.cf as well. (See "Mail Forwarding Domains in here:
http://www.postfix.org/VIRTUAL_README.html )
> but in my log I get the lines below showing a rewrite to
> rwm132@young.usask.ca. I think its using young because I don't have a
> main.cf param defined and the MTAs default is to use the DNS entry for
> the ip addr of this machine
What's making this even uglier is that you're reciving mail with the
host part being the alias of a machine... so you probably have to
account for both the real name, and the alias, when setting this
up...
However: I think if this machine is just doing simple forwarding, you
shouldn't need the "virtual" part at all -- you should just be
setup to accept mail to @young.usask.ca or @engr.usask.ca addresses,
and then rely on the aliases.db file to do the actual forwarding...
Later...
Greg Oster
Received on Sat Oct 28 17:40:56 2006
This archive was generated by hypermail 2.1.8 : Sat Oct 28 2006 - 17:41:04 CST