Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 21st January 2010, 19:32
voltron81 voltron81 is offline
Senior Member
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default Postfix with virtual users and domains and a difficult mailtransport configuration...

Hi to everybody.
I've realized a mailserver based on postfix and virtual mailboxes (following this how-to: http://www.howtoforge.com/virtual-us...l-debian-lenny

Now, in this mailserver I'll have some accounts from different providers (even gmail or hotmail).

All the emails to be sent will be relayed to another mailserver. (depending of the sender, means that if the sender is a gmail account, that email must be relayed to gmail).

I'm able to say to postfix which emails are internal, putting all the internal email addresses in mysql_virtual_transport.

But for the emails that are not destined to an internal account, I can just put in mysql_virtual_transport the general value:
*  	smtp:mail.anotherdomain.tld
So all emails are delivered to mail.anotherdomain.tld.

The problem is that the sender is not always using the same smtp server to relay emails (as I said before, if is using gmail want to relay to gmail, etc).

How can I decide the generic virtual transport depending of the sender instead of the receiver?
I mean, how can I say to postfix that:
*  	smtp:mail.domain1.tld
is for the sender user@doman1.com
*  	smtp:mail.domain2.tld
is for the sender user@domain2.tld
*  	smtp:mail.domain3.tld
is for the sender user1@domain2.tld?????

I hope I was understandable...

Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 15:33
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 06:39
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 18:57

All times are GMT +2. The time now is 10:50.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.