LinuxQuestions.org
Help answer threads with 0 replies.
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-18-2004, 10:53 PM   #1
CRCool75
Member
 
Registered: Jul 2004
Location: Alabama, USA
Distribution: OpenSuse 12.1
Posts: 66

Rep: Reputation: 15
PostFix Mail Relay...


Does anybody know how to get post fix to relay mail for only one user? I quite often use my email outside of the office, but am unable to send mail to anybody outside of our network.

Thanks!
 
Old 08-19-2004, 05:22 AM   #2
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
If you have a static IP, you could add that to "mynetworks" in main.cf.

Since static IP's are rare and most of my users also had the desire to be able to access e-mail from outside the office, I setup VPN using PoPToP. This way they get an IP from inside the office subnet, so no changes to the relay setup required. The connection to PopToP is easy to setup on any Windows or Linux client.
 
Old 08-19-2004, 01:33 PM   #3
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
Use SMTP AUTH. Take a look at sample-auth.cf on how to enable SASL (system used by smtp auth). It'll take some configuration, but SuSE should have it installed. It's the way everybody should be doing it, and it isn't too hard to setup. Modern email clients support this.

Another way is to use "POP before SMTP". It ain't the best way, but it's been used for years. This is a start for postfix http://www.stahl.bau.tu-bs.de/~hilde...-smtp_en.shtml.

There is a way to use the "MAIL FROM:" address to allow relaying, but it is bad etiquette to do so (once a spammer/abuser finds it, your MTA will spew mail everywhere). Quoting Ralf above in fact this restriction is used only by administrators who have no grasp of how SMTP actually works.. But now I'll point out the rope and tree. You'll have to tie your own noose ;). Take a look at sample-smtpd.cf, specifially the check_sender_access restriction and smtpd_recipient_restrictions. (and if it don't work, don't ask, I've never done it.)

Don't hang yourself,
chris
 
Old 08-20-2004, 01:28 AM   #4
CRCool75
Member
 
Registered: Jul 2004
Location: Alabama, USA
Distribution: OpenSuse 12.1
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bastard23
Use SMTP AUTH. Take a look at sample-auth.cf on how to enable SASL (system used by smtp auth). It'll take some configuration, but SuSE should have it installed. It's the way everybody should be doing it, and it isn't too hard to setup. Modern email clients support this.

Another way is to use "POP before SMTP". It ain't the best way, but it's been used for years. This is a start for postfix http://www.stahl.bau.tu-bs.de/~hilde...-smtp_en.shtml.

There is a way to use the "MAIL FROM:" address to allow relaying, but it is bad etiquette to do so (once a spammer/abuser finds it, your MTA will spew mail everywhere). Quoting Ralf above in fact this restriction is used only by administrators who have no grasp of how SMTP actually works.. But now I'll point out the rope and tree. You'll have to tie your own noose . Take a look at sample-smtpd.cf, specifially the check_sender_access restriction and smtpd_recipient_restrictions. (and if it don't work, don't ask, I've never done it.)

Don't hang yourself,
chris
Where would the sample-auth.cf file be?
 
Old 08-20-2004, 04:07 AM   #5
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
It's in /etc/postfix or /usr/share/doc/packages/postfix/sample depending on what version of postfix and SuSE packaging. There is also a SASL_README included with the postfix distribution. You should be able to skip over the cyrus sasl (a specific implemntation of sasl (Simple Authentication and Security Layer)) compilation as SuSE should already have it packaged and postfix linked against it. Take a look at /usr/share/doc/cyrus-sasl/doc for the nitty gritty of SASL. The readme should get you running. If not feel free to post some specific problems here or in a new thread.

Good Luck,
chris
 
  


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 as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
Postfix - relay mail to internet for specified users FatOldSun Linux - Software 2 03-21-2005 03:32 AM
Postfix, Bugzilla, and mail relay llamaindustries Linux - Software 0 02-07-2005 06:49 PM
mail relay/proxy with postfix waskelton4 Linux - Software 2 09-07-2004 11:33 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM

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

All times are GMT -5. The time now is 02:06 AM.

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