LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-24-2006, 05:06 PM   #1
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Rep: Reputation: 30
postfix allow relay by "FROM:" domain


Hi,

Is it possible to allow users to relay mail if the mail has a from address of *@mydomain.com? I have got this working by IP address but this is no good if users travel a lot.

Paddy
 
Old 09-24-2006, 09:56 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
It's safer to use SMTP authentication, because with what you want to do, your system could be open to abuse.
But here's what you asked for. In main.cf:
Code:
smtpd_recipient_restrictions = 
  permit_mynetworks
  check_sender_access hash:/etc/postfix/sender_access
  reject_unauth_destination
sender_access:
Code:
mydomain.com   OK
Then,
Code:
# postmap /etc/postfix/sender_access
# postfix reload
 
Old 09-24-2006, 10:56 PM   #3
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Original Poster
Rep: Reputation: 30
Thanks for that, might go with the SMTP authentication if it is safer.

Paddy
 
Old 09-25-2006, 09:08 AM   #4
Child of Wonder
Member
 
Registered: Jul 2004
Location: Sioux Falls, SD
Distribution: Debian, Ubuntu, Fedora, Red Hat
Posts: 69

Rep: Reputation: 16
Your mail server will get blacklisted very quickly and frequently if you allow relaying based only on the from domain. Anyone can connect to your server and use @yourdomain.com as a from address and, trust me, SPAMMERS DO THIS ALL THE TIME.

Set up SMTP Auth with SASL. It's easy to do and there's lots of how tos out there. Just Google it.
 
Old 09-25-2006, 05:02 PM   #5
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Original Poster
Rep: Reputation: 30
Thanks I have set up SMTP auth now.

Paddy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 - Single domain with multipe relay host jignesh.vasani Linux - Software 10 11-30-2009 04:53 PM
Postfix "554 Relay access denied" alexpopescu Linux - Software 1 10-17-2005 03:22 AM
Postfix - "Relay Access Denied" clickster Linux - Software 1 09-12-2005 04:28 PM
Email Error - "Recipient address rejected: Relay access denied" ripcord Linux - Newbie 1 10-31-2002 03:00 PM
Help, after enable the "relay control" we can't receive the mail! explorer1979 Linux - General 1 11-28-2001 02:17 PM


All times are GMT -5. The time now is 01:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration