View Full Version : Sending e-mails to non-local recipient
alhamed
22nd August 2007, 12:12
I need your kind support on the following:
I need to be able to send an e-mail to a recipient that is not listed in the local alias database. Knowing that my local non-registered domain is the same as the recipient's public registered domain.
I am running Postfix on Centos 4.3 and my recipient is running Qmail on RHE3.
falko
23rd August 2007, 19:57
You could Postfix transports for it. See man 5 transport
alhamed
27th August 2007, 10:21
Thanks for your reply
I read the man page for configuring the transport but still not able to understand what to do.
I am not sure if I clearly stated my problem, but please allow me to add more details.
My local server belongs to a non-public domain: domain1.com
My remote server belongs to a public registered domain: domain1.com
Both has the same domain name!
My objective is to exclude some of the users accounts but not all from the public domain and create matching user accounts in the local domain.
So I created user1 and user2 in my local postfix server, but user3 is defined only in my remote server. I used outlook express for testing.
The results as follow:
Sending & receiving from user1@domain.com to user2@domain1.com works fine. But when I try to send from user1 or user2 to user3@domain1.com, it states that user3 not found in the local recipient table.
How can I make postfix understand that user3's e-mails need to be forwarded outside my LAN's domain to the public domain which has the same domain name?
falko
28th August 2007, 19:49
Try this in /etc/postfix/transport:
user3@domain1.com smtp:external_mailserver
Run postmap /etc/postfix/transport afterwards and restart Postfix.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.