Quantcast

Maximum PC

It is currently Sat Oct 25, 2014 6:20 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Postfix Setup - Spam Gateway
PostPosted: Tue Oct 12, 2004 7:18 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 11:30 am
Posts: 368
Location: San Antonio, TX
I have an Exchange server in house and while we are using iHateSpam on it I want to get a higher level of control over what gets to the mail server. My solution is to setup a postfix relay that only relays addresses on a recipient list and NDRs all other messages. I am having a little trouble getting it setup.

The resources I am following are below:
http://www.postfix.org/SASL_README.html
http://postfix.state-of-mind.de/patrick ... index.html
http://www.xmission.com/~jmcrc/spamfilter20041003.html

I am running this on Debian with postfix from apt-get and Cyrus SASL installed manually. It is the latest 2.x release. The problem I am having is that even though it should only be relaying certain messages, it is acting like an open relay and will forward mail to any destination.

My setup files are as follows:
Quote:
main.cf
# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = filter
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = mydomain.com
mydestination =
local_recipient_maps =
local_transport = error:local mail delivery is disabled
relayhost =
mynetworks = 127.0.0.0/8 192.168.1.0/24 192.168.0.0/24
relay_domains = mydomain.com
parent_domain_matches_subdomains = debug_peer_list smtpd_access_maps
smtpd_recipient_restrictions = permit_mynetworks permint_sasl_authenticated reject_unauth_destination
relay_recipient_maps = hash:/etc/postfix/relay_recipients
transport_maps = hash:/etc/postfix/transport
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual

smtpd_sasl_auth_enable = yes


Quote:
relay_recipients is a file full of my valid email addresses in the form:
user@mydomain.com x


Quote:
transport
mydomain.com smtp:[192.168.1.2]


Quote:
virtual
postmaster user@mydomain.com
abuse user@mydomain.com


Top
  Profile  
 
 Post subject:
PostPosted: Sat Nov 06, 2004 12:36 am 
Million Club 2+ [PC]
Million Club 2+ [PC]
User avatar

Joined: Mon Jun 14, 2004 11:20 am
Posts: 1700
bump


Top
  Profile  
 
 Post subject:
PostPosted: Sat Nov 06, 2004 1:13 am 
Smithfield
Smithfield
User avatar

Joined: Sun Sep 05, 2004 9:01 am
Posts: 8091
one more bump... in case Logans wasn't enough.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.