I actually use a Sendmail server in my network with two domains, my email
addresses are like j...@domain1.com and j...@domain2.com and both points to
the same mailbox (Joes's).
I have just set a new mail server with the "kolab" package wich relies on a
Postfix server.
My purpose is to migrate all existing mailboxes onto this new server. I
intend to do it "smoothly" during few weeks.
This mean we will have users on both servers during this time, for example
Joe in Sendmail and John in Postfix.
Of course, Joe and John must me able to communicate each other.
I have found a solution for John to send mail to Joe by adding theses
specific lines in the "transport" Postfix file:
j...@domain1.com smtp:[ip_Sendmail]
j...@domain2.com smtp:[ip_Sendmail]
On the opposite side (sendmail server to postfix one), I intended to use the
virtusertable with something like:
jo...@domain1.com john@ip_Postfix
jo...@domain2.com john@ip_Postfix
but it doesn't work ...
When I send a mail from Joe to John, I receive an error from the mail server
wich relays our messages with Internet telling me he is unable to find
'john@ip_Postfix'. So sendmail probably doesn't try to send this message
locally to the postfix server.
What is wrong, can somebody helps me ?
Thanks in advance.
Mo.
If you want to use an IP address as the domain-part of an email address,
the required format is user@[ip.add.re.ss], i.e. you need [brackets]
around it - otherwise it is (and should be) interpreted as a host/domain
name. Your Postfix may or may not understand this format though - i.e.
it may not realize that it's supposed to deliver those messages locally.
A cleaner way could be to use the ldap_routing feature - no need to use
LDAP, but you can specify any map that maps an email address to a host
name for <mailHost>, and `null' for <mailRoutingAddress>.
--Per Hedeland
p...@hedeland.org
> If you want to use an IP address as the domain-part of an email address,
> the required format is user@[ip.add.re.ss], i.e. you need [brackets]
> around it - otherwise it is (and should be) interpreted as a host/domain
> name. Your Postfix may or may not understand this format though - i.e.
> it may not realize that it's supposed to deliver those messages locally.
It's right. When I do this, the message is well sent locally but it's my
Postfix server (destination) who complain about a unknown
user@[ip.add.re.ss]
I found another way this night by ading an john@[ip_Postfix] to John and it
works !
The inconvenient is the time to do all these declarations.
> A cleaner way could be to use the ldap_routing feature - no need to use
> LDAP, but you can specify any map that maps an email address to a host
> name for <mailHost>, and `null' for <mailRoutingAddress>.
I don't know this feature but I will look at it.
You might be able to tell Postfix that [ip.add.re.ss] is a "local
domain", i.e. do it only once. (Sendmail figures this out
automatically).
--Per Hedeland
p...@hedeland.org