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 10th July 2007, 13: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

Hello,

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:
Code:
ip1 OK
ip2 REJECT
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
Code:
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
http://www.howtoforge.com/forums/showthread.php?t=13200

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 14:00.
Reply With Quote
Sponsored Links
  #2  
Old 11th July 2007, 16:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

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

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:
1.2.3.4 OK
1.2.3 REJECT
So only one server should be able to send mails through this postfix server.
Then I executed the command:
Code:
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
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
Help with Bluetooth PAND josto HOWTO-Related Questions 1 7th August 2007 20:53
Squid Problem tommyboy180 HOWTO-Related Questions 10 21st May 2007 14:32
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
Totally Confused?? :( kingtux Installation/Configuration 7 9th February 2006 22:14


All times are GMT +2. The time now is 08:31.


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