OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Masquerade/forward issue

From: Shelley Waltz (shwaltzcabm.rutgers.edu)
Date: Thu Jun 05 2008 - 11:43:07 CDT


Brian Evans said:
> Shelley Waltz wrote:
>> I am transitioning to a new postfix server. For a period, I will
>> wish to forward certain user addresses on the old postix host
>> (a.domain.edu)
>> to my new postfix host(b.domain.edu)
>>
>> I am attempting to accomplish this using the aliases file on the old
>> host
>> user: userb.domain.edu
>>
>> my main.cf on old host has
>> myhostname = a.domain.edu
>> mydomain = domain.edu
>> myorigin = $mydomain
>> mydestination = $myhostname, localhost.$mydomain, $mydomain
>> masquerade_domains = domain.edu
>>
>> my main.cf on my new postfix host
>> myhostname = b.domain.edu
>> mydomain = domain.edu
>> myorigin = $mydomain
>> mydestination = $myhostname, localhost.$mydomain, $mydomain
>> masquerade_domains = domain.edu
>>
>> I also have the following MX
>>
>> a IN A 1.2.3.4
>> IN MX 0 a
>> domain.edu. IN A 1.2.3.4
>> IN MX 0 a
>>
>>
>> b IN A 1.2.3.5
>> IN MX 0 b
>>
>>
>> When i send mail to usermydomain.edu, it is forwarded to the new server
>> and
>> the postfix smtp on new server reports ...
>>
>> Jun 5 10:16:53 b postfix/local[4036]: B7EE7C0027D:
>> to=<userdomain.edu>,
>> orig_to=<userb.domain.edu>, relay=local, delay=0.02,
>> delays=0.01/0.01/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop
>> for userdomain.edu)
>>
>>
>> What do I need to reconfigure to accomplish this?
>> thnx, S
>>
> A more elegant way to handle this is to use a transport table with
> transport_maps in main.cf.
>
> Example:
>
> userexample.edu smtp:[1.2.3.5]
>
> Brian
>

Created transport.db with
userdomain.edu smtp:{1.2.3.5}
and added to main.cf and did a reload

my test to userdomain .edu goes to the new server, but is refused
connection ...
Jun 5 12:27:09 b postfix/lmtp[4427]: 34D4CC00217: to=<userdomain.edu>,
relay=none, delay=0.01, delays=0.01/0/0/0, dsn=4.4.1, status=deferred
(connect to b.domain.edu[/var/lib/imap/socket/lmtp]: Connection refused)

do I need to add something to main.cf on b.daomin.edu to accept these
connections?