LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-01-2012, 08:59 AM   #1
tardis1
LQ Newbie
 
Registered: Sep 2010
Location: Texas
Distribution: Ubuntu Server lucid, Ubuntu Desktop maverick
Posts: 15

Rep: Reputation: 0
Question Postfix remote users/smartphones must send through relay_domains


I have an Ubuntu 11.10 server running Postfix/Dovecot for e-mail sending/receiving and MUA access. Everything was running well until such time that smartphones and remote users became popular. Even though I have SASL installed and the alleged proper settings in main.cf to allow remote users to submit and send e-mail, they are forced to send through the relay_domains setting. Once I add their recipient domain to the list in relay_domains, the users can send e-mail via their smartphones.

I don't wish to set up an open relay, but isn't there some way to wildcard the settings in relay_domain so that I don't have to have users getting "relay access denied" on domains that I haven't entered yet? Not to mention the delays and confusion of having them submit domains in advance.

Will publish main.cf file if needed, but not until requested. If this is not the right forum, my apologies and please point me to the right one.

Thanks,
 
Old 08-01-2012, 09:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well you would update smtpd_recipient_restrictions to include permit_sasl_authenticated, so you would then permit local networks, mail to you and any authenticated remote user.
 
Old 08-02-2012, 08:21 AM   #3
tardis1
LQ Newbie
 
Registered: Sep 2010
Location: Texas
Distribution: Ubuntu Server lucid, Ubuntu Desktop maverick
Posts: 15

Original Poster
Rep: Reputation: 0
I have done that already. It is why I said that I have installed SASL and the alleged proper settings in main.cf. I have heavily tested the SASL authentication, even by checking /var/log/mail.log entries and as best I can tell, users are authenticating.

However, when they authenticate, instead of allowing their mail to be sent wherever they desire, it requires their recipient domain name to be listed in the relay_domains= section of main.cf. As soon as I place their recipient's domain there, they can send mail. But, that is a slow, awkward method. I can't see that very large systems would put up with this method of remote user mail (mainly smarthpones) for very long. I grow tired of it as well, but I can find no real solution other than an open MTA. I don't like that solution either.

Since I know pretty sure that SASL is authenticating the user, I would just like a way to wildcard some or all of the domain settings that have to be placed in relay_domains. Is there such an animal?
 
Old 08-02-2012, 08:25 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
permit_sasl_authenticated *IS* the wildcard.
 
Old 08-03-2012, 08:01 AM   #5
tardis1
LQ Newbie
 
Registered: Sep 2010
Location: Texas
Distribution: Ubuntu Server lucid, Ubuntu Desktop maverick
Posts: 15

Original Poster
Rep: Reputation: 0
OK, I noticed it now. I had smtpd_client_restrictions set up. I didn't know there was another one for recipient restrictions. Loaded it and tested; it's functional now. Thanks,
 
  


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 cannot send mail to users in the same machine mlandvo Linux - Server 5 06-24-2010 03:52 AM
database relay_domains.db is older than source file relay_domains homyangcha Linux - Newbie 9 02-11-2009 01:44 AM
Postfix: Do not allow local users to send mail Termina Linux - Server 1 03-22-2007 05:15 PM
Sendmail - Remote users cant send Skip-DMP Linux - Software 5 02-21-2006 01:53 PM
Qmail wont send to Remote users! kofi Linux - Networking 3 12-02-2002 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:58 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