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.
Thread Tools Display Modes
Old 22nd July 2010, 16:26
KenKnight KenKnight is offline
Senior Member
Join Date: Nov 2005
Posts: 137
Thanks: 0
Thanked 3 Times in 2 Posts
Default Only allow specific domain to send to a specific email account

Hi all,

I would like to create a broadcast email account that will only accept email from our internal domain. We're using ISPconfig 2.2.18 and I've setup the email account and it will forward whatever emails it receives to the addresses in the forwarding list.

We only this email account to accept emails from our internal domain.

Ok, I've found the following properties available in postfix

smtpd_recipient_restrictions = check_recipient_access hash:/map

I created the /etc/postfix/access file and put the following in there;
myemail@mydomain.com permit_sasl_authenticated,reject

I then run postmap /etc/postfix/access.
Once this is in play, I can no longer send email through the server so
I have to remove the directive and restart the service in order to
send email again.

I think this is the right direction, however, need someone to shed
a little light on what I might be doing wrong.

Any suggestions?


Last edited by KenKnight; 22nd July 2010 at 17:45.
Reply With Quote
Sponsored Links
Old 23rd July 2010, 14:42
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

You could use header_checks for this: http://www.postfix.org/header_checks.5.html
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


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
Can't recieve email from external account (no bounce message) sampson Installation/Configuration 4 30th April 2010 16:37
Postfix - Can send email but not receiving any email deckerz Server Operation 6 8th April 2010 18:32
Email Attachment cant send out using ispconfig 2 cheesewizz Installation/Configuration 4 29th March 2010 04:27
General hostname domain email question. stefanos Server Operation 2 7th May 2009 20:17
Email domain forwarding stevieb Installation/Configuration 8 30th January 2009 18:51

All times are GMT +2. The time now is 02:56.

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