Masquerade/forward issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Masquerade/forward issue

Shelley Waltz
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:  [hidden email]

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 [hidden email], 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=<[hidden email]>,
orig_to=<[hidden email]>, relay=local, delay=0.02,
delays=0.01/0.01/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop
for [hidden email])


What do I need to reconfigure to accomplish this?
thnx, S

Reply | Threaded
Open this post in threaded view
|

Re: Masquerade/forward issue

Brian Evans - Postfix List
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:  [hidden email]
>
> 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 [hidden email], 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=<[hidden email]>,
> orig_to=<[hidden email]>, relay=local, delay=0.02,
> delays=0.01/0.01/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop
> for [hidden email])
>
>
> 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:

[hidden email]   smtp:[1.2.3.5]

Brian
Reply | Threaded
Open this post in threaded view
|

Re: Masquerade/forward issue

Shelley Waltz

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:  [hidden email]
>>
>> 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 [hidden email], 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=<[hidden email]>,
>> orig_to=<[hidden email]>, relay=local, delay=0.02,
>> delays=0.01/0.01/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop
>> for [hidden email])
>>
>>
>> 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:
>
> [hidden email]   smtp:[1.2.3.5]
>
> Brian
>

ok, thanks seems like a good solution, so I created the map with

[hidden email] postmap'd to create the hash file and
Reply | Threaded
Open this post in threaded view
|

Re: Masquerade/forward issue

Shelley Waltz
In reply to this post by Brian Evans - Postfix List

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:  [hidden email]
>>
>> 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 [hidden email], 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=<[hidden email]>,
>> orig_to=<[hidden email]>, relay=local, delay=0.02,
>> delays=0.01/0.01/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop
>> for [hidden email])
>>
>>
>> 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:
>
> [hidden email]   smtp:[1.2.3.5]
>
> Brian
>

Created transport.db with
[hidden email]  smtp:{1.2.3.5}
and added to main.cf and did a reload

my test to user@domain .edu goes to the new server, but is refused
connection ...
Jun  5 12:27:09 b postfix/lmtp[4427]: 34D4CC00217: to=<[hidden email]>,
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?
Reply | Threaded
Open this post in threaded view
|

Re: Masquerade/forward issue

Brian Evans - Postfix List
Shelley Waltz wrote:

> 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:  [hidden email]
>>>
>>> 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 [hidden email], 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=<[hidden email]>,
>>> orig_to=<[hidden email]>, relay=local, delay=0.02,
>>> delays=0.01/0.01/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop
>>> for [hidden email])
>>>
>>>
>>> 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:
>>
>> [hidden email]   smtp:[1.2.3.5]
>>
>> Brian
>>
>>    
>
> Created transport.db with
> [hidden email]  smtp:{1.2.3.5}
> and added to main.cf and did a reload
>
> my test to user@domain .edu goes to the new server, but is refused
> connection ...
> Jun  5 12:27:09 b postfix/lmtp[4427]: 34D4CC00217: to=<[hidden email]>,
> 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?
>  
This is a different issue.  Your delivery agent on b, via lmtp, is
refusing to talk to postfix.

First, check to see if your delivery agent is running and listening on
that socket.

If you need further help, please post `postconf -n` from the b box and
master.cf if you've modified it

Brian