LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-28-2006, 11:07 AM   #1
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
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..
 
Old 08-28-2006, 11:20 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
set both
smtpd_recipient_restrictions = permit
smtpd_delay_reject = yes
in main.cf and reload postfix.
 
Old 08-28-2006, 07:58 PM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Original Poster
Rep: Reputation: 36
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....
 
Old 09-01-2006, 12:35 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Postfix/SMTPD] Getting no AUTH from server; open relay superhausi Linux - Security 2 11-19-2008 05:37 PM
Spam, PostFix, OPen Relay question linchat Linux - Software 1 09-15-2005 03:22 PM
closing a postfix open relay behind a NAT mishunimi Linux - Networking 2 02-05-2004 06:32 PM
Postfix - Open relay or not? darklogik_org Linux - Software 2 01-29-2004 05:30 AM
How to avoid making postfix setup an open relay??! lucastic Linux - Software 16 11-11-2003 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration