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 16th November 2007, 07:12
DrJohn DrJohn is offline
Join Date: Aug 2007
Location: Portland, OR, USA
Posts: 66
Thanks: 8
Thanked 2 Times in 2 Posts
Default SMTP from specific IP range OR any IP with AUTH

Gutsy Gibbon Server, Postfix 2.4.5, MySQL 5.0.45, Shorewall 3.4.4.

I use McAfee's email filtering service to funnel email into an smtp server that sits directly on the net. It accepts smtp from either a fixed ip range ( that corresponds to the McAfee servers' source addresses and authenticates them as 'guest' with appropriately limited privileges; or it accepts from any ip address authenticated users (NTLM & TLS; its a Windows system) with higher privileges.

I'm switching over to Linux, using a virtual domains setup on Postfix with MySQl as described in several places on this site. I don't have any apparent problems with local mail clients for smtp or imap to send/receive mail as desired.

But, I'm not quite sure how to configure to accept external clients such as myself on a laptop while traveling (can authenticate but on a random IP) while also accepting email coming in from McAfee's service (can't authenticate but restrained within a fixed IP range).

I could set up a VPN for external clients to access postfix from the inside, but is there a way to setup postfix to accept external connections as described above?

Thanks in advance for your thoughts!

Reply With Quote
Sponsored Links
Old 17th November 2007, 10:35
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

All you have to do is set up SMTP-AUTH (covered by all the virtual users with Postfix howtos here) and then enable "Server requires authentication." in your email client.
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 17th November 2007, 21:24
DrJohn DrJohn is offline
Join Date: Aug 2007
Location: Portland, OR, USA
Posts: 66
Thanks: 8
Thanked 2 Times in 2 Posts

The server is already set up this way. Let me clarify what I mean.

I want to accept incoming mail destined for users in the local domains (mydomain.net, mydomain.com, mydomain.org) only from the McAfee SMTP servers and no where else. The McAfee servers don't provide any authentication and have to be filtered or recognized by their IP address range. The MX records for my domains point to the McAfee servers, but anyone could attempt to send mail or relay thru my server here by using its IP address directly, instead, so,

I do not want to accept mail from any other servers either destined for the local domains or in any relay attempts thru my server, except if authenticated as a user, that is, I want to relay mail from any authenticated user (myself and the other authorized users) both from within the LAN (on or from the outside.

The mail server I currently use has a mechanism that will recognize servers from a specific IP address range as a limited-privilege user ('guest' or whatever I designate) that is allowed to drop mail that's destined for the local domains, only.

Is there a way to do this in Postfix, or does it already do so? Would you please explain a little about how Postfix might accomplish this?


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
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
smtp auth w/ sasl. marsvin HOWTO-Related Questions 6 19th September 2007 23:45
SMTP Auth problems in Debian Etch w/ISPConfig fish3232 Installation/Configuration 11 30th March 2007 20:56
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
postfix smtp sasl auth problem hammer Installation/Configuration 1 13th July 2006 19:19

All times are GMT +2. The time now is 20:49.

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