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 10th July 2007, 14:41
schmidse schmidse is offline
Junior Member
Join Date: Jun 2007
Location: Germany
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default Postfix with restricted sender list / ACL


our postfix-server is running fine and can sent mails to internal and external addresses.
so what we want to do now is to restrict the access to this server through an ACL. therefore i have added two lines within /etc/postfix/access like the example:
ip1 OK
Afterwards I have executed the command postmap /etc/postfix/access and restarted postfix with the result that no mail was delivered any more :-(
Even when I load the original (working) config and start postfix with this config there is the same behaviour.

There is something confusing for me within /var/log/mail.info
postfix/qmgr : [message-id] from: sender, size=xxx, nrcpt=1 (queue active)
postfix/smtpd: disconnect client [client-ip]
psotfix/smtp: [message-id] to: recipient, relay=relayhost, delay=yy, status=sent (250 message accepted for delivery)
postfix/qmgr: [message-id] removed
This seems to me that all the mails are deleted?!

Our basic configuration is shown in the thread here

What is the right way to introduce an ACL to postfix?
Modifying the variable smtp_client_restrictions and edit the /etc/postfix/access?

It would be nice if someone out there can help me.

Thanks in advance!

Last edited by schmidse; 10th July 2007 at 15:00.
Reply With Quote
Sponsored Links
Old 11th July 2007, 17:52
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

Are there any errors in your mail log?
Are the mails gone, or are they maybe in the mail queue? You can check with
postqueue -p
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
Old 12th July 2007, 14:51
schmidse schmidse is offline
Junior Member
Join Date: Jun 2007
Location: Germany
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts

I can't find any error in our mail log.

The Mail queue is empty, this is the result of the command postqueue -p

Perhaps I made a mistake in my proceeding of generating an ACL:
First I created a file like this one:
Code: OK
1.2.3 REJECT
So only one server should be able to send mails through this postfix server.
Then I executed the command:
postmap -q - /etc/postfix/access < file
After this I have changed the parameter
smtpd_client_restrictions from no value to hash: /etc/postfix/access

Afterwards I restarted postfix.

Is this the correct way or is there still more to do? Does such an ACL influence the parameter mynetworks?
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
Help with Bluetooth PAND josto HOWTO-Related Questions 1 7th August 2007 21:53
Squid Problem tommyboy180 HOWTO-Related Questions 10 21st May 2007 15:32
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36
Totally Confused?? :( kingtux Installation/Configuration 7 9th February 2006 23:14

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

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