This is a discussion on relay all mail without local exception within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; hi all, On Postfix I would like to relay all mails to another postfix ... With option in main.cf : relayhost = ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hi all, On Postfix I would like to relay all mails to another postfix ... With option in main.cf : relayhost = smtp2.foo.com all outgoing mail are relayed except local mails ( for local users ). if my users execute command : mail nick@foo.com , mail is relayed if my users execute command : mail nick , mail is not relayed and put in /var/spool/mail Someone have the solution .... Thanks All Damian |
|
|||
|
> if my users execute command : mail nick , mail is > not relayed and put in /var/spool/mail > Hello Demian, I think you must define: mydestination = in your main.cf so postfix never will be deliver local. Otherwise you can define a spezial transport methode for your domain with: foo.com smtp:smtp2.foo.com ..foo.com smtp:smtp2.foo.com in your transport table. Ihope that will help you Mike |
|
|||
|
thanks Mike ....
All works good ... "Mike Nagel" <m_nagel@der-nagel.de> a écrit dans le message de news: 4033BC92.5050906@der-nagel.de... > > > if my users execute command : mail nick , mail is > > not relayed and put in /var/spool/mail > > > Hello Demian, > > I think you must define: > > mydestination = > > in your main.cf so postfix never will be deliver local. > Otherwise you can define a spezial transport methode for your domain with: > > foo.com > smtp:smtp2.foo.com > .foo.com > smtp:smtp2.foo.com > > > in your transport table. > > Ihope that will help you > > > Mike > > > > > |