Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th May 2009, 13:29
kule kule is offline
Junior Member
 
Join Date: Jan 2008
Posts: 14
Thanks: 0
Thanked 3 Times in 2 Posts
Question Postfix, reject recipient without domain?

I've used the postfix, mysql, dovecot, virtual users howto which has worked great over the last few months.

I have one minor query:

Occasionally I have users messing up and sending emails without a domain name e.g. "jill". What happens is it then gets converted to "jill@mydomain.com" and I get the email sent to me via my catch all.

Instead; Is it possible to reject emails that don't have the domain specified and bounce a message back to the sender and, if so, how do I do it?

Many Thanks
Luke
Reply With Quote
Sponsored Links
  #2  
Old 25th May 2009, 17:31
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

use this option reject_non_fqdn_sender in smtpd_recipient_restrictions
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 25th May 2009, 17:57
kule kule is offline
Junior Member
 
Join Date: Jan 2008
Posts: 14
Thanks: 0
Thanked 3 Times in 2 Posts
 
Default

Thanks for the reply I tried your suggestion (and restarted postfix) using reject_non_fqdn_sender & also tried reject_non_fqdn_recipient but neither worked.

Would this be something to do with having virtual users setup or am I missing something obvious?

Code:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relay access denied when using SMTP to external recipients Kamran Shah Installation/Configuration 111 14th May 2014 19:10
Postfix: Incoming Mail for one domain returns to sender andreyenkin Installation/Configuration 1 15th November 2008 16:35
can't receive mail from outgoing postfix nmy Server Operation 4 26th October 2008 16:04
SMTP mass Connection error barney.parker Server Operation 2 2nd November 2007 18:57
Bind, Postfix and possibly more problems from "http://" domain entry LunarNexus Installation/Configuration 5 5th April 2006 16:50


All times are GMT +2. The time now is 12:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.