LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Postfix, open relay (https://www.linuxquestions.org/questions/linux-networking-3/postfix-open-relay-478104/)

vimal 08-28-2006 11:07 AM

Postfix, open relay
 
Hello,


I would like to know how to configure Postfix as an open relay server. This setting is to be used in our LAN and is for testing purposes. Could anyone please tell me how to configure postfix for this?

Thanks in advance..

peter_robb 08-28-2006 11:20 AM

set both
smtpd_recipient_restrictions = permit
smtpd_delay_reject = yes
in main.cf and reload postfix.

vimal 08-28-2006 07:58 PM

Hello peter_robb,

Thanks for the reply..

I have one more doubt, i think... How can we configure postfix so as to relay mails from any source to the pre-defined destinations. I know we can specify the destination addresses as domains or subnets etc... but i just want to pass on the mails to the destination irrespective of the source(consider the mail server routing mails on to the clients on to an internal network). I think you get my point. ie.. Mail from any source, destined to the internal network has to be relayed to the destination....

Thanks in advance....

peter_robb 09-01-2006 12:35 PM

That depends on what the destination is..

Is it a file, eg an mbox file,
or a maildir directory,
or an imap server, eg cyrus,
or another smtp server, mail relay server, etc..

Most are handled by the "mailbox_transport' option which specifies transports from the master.cf file, but can also require address rewriting as well as additional routing information..

There are several basic configurations in the FAQ at postfix.org


All times are GMT -5. The time now is 09:07 AM.