|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: geotux (geotux
gmx.de)
Date: Mon Aug 13 2007 - 08:13:45 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dear list,
I managed to setup my own mailserver for my lan.
my relayhost for outgoing mail requires some sort of rewriting which I
have done with:
smtp_generic_maps = hash:/etc/postfix/generic_maps
/etc/postfix/generic_maps: username username
mailprovider.com
seems to work fine
but when receiving mails sent from server.homenetwork.lan spammassassin
identifies them everytime as spam :-(
spamassassin seems to dislike altering envelope and header addresses.
I also tried sender_canonical_maps = hash:/etc/postfix/sender_canonical
Is there any other way to get my mails delivered to my relayhost (namely
GMX and gmail)?
Thaks for any hint
m.
PS: server = debian etch using postfix-stable-version
logs and configs
main.cf:
soft_bounce = yes
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = server.homenetwork.lan
mydomain = homenetwork.lan
###SENDING###
myorigin = /etc/mailname
relayhost = mail.gmx.net
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd_isp
#sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_sasl_auth_enable = yes
smtp_generic_maps = hash:/etc/postfix/generic_maps
###RECEIVING###
mydestination = server.praesentis.lan, localhost.praesentis.lan,
localhost
unknown_local_recipient_reject_code = 450
mynetworks_style = subnet
mynetworks = 192.168.1.0/24, 127.0.0.0/8
relay_domains = $mydestination
append_dot_mydomain = no
smtpd_use_tls=yes
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
---------------------------------------------------------------------------
/var/log/mail.log:
Aug 13 14:46:53 server postfix/pickup[4988]: EB5FF4C407E: uid=0
from=<root>
Aug 13 14:46:53 server postfix/cleanup[4995]: EB5FF4C407E:
message-id=<20070813124653.EB5FF4C407E
server.homenetwork.lan>
Aug 13 14:46:53 server postfix/qmgr[4989]: EB5FF4C407E:
from=<username
server.homenetwork.lan>, size=507, nrcpt=1 (queue active)
Aug 13 14:46:55 server postfix/smtp[4991]: EB5FF4C407E:
to=<username
somewhere.de>, relay=mail.gmx.net[213.165.64.21]:25,
delay=1.1, delays=0.02/0/0.73/0.4, dsn=2.6.0, status=sent (250 2.6.0
Message accepted {mp047})
Aug 13 14:46:55 server postfix/qmgr[4989]: EB5FF4C407E: removed
----------------------------------------------------------------------------
spamassassin-log:
Aug 13 14:06:13 host spamd[752]: spamd: checking message
<20070813120337.A2D464C4082
server.homenetwork.lan> for username:1000
Aug 13 14:06:14 host spamd[752]: spamd: identified spam (5.8/5.0) for
username:1000 in 1.3 seconds, 1117 bytes.
Aug 13 14:06:14 host spamd[752]: spamd: result: Y 5 -
AWL,HELO_LH_HOME,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC
scantime=1.3,size=1117,user=username,uid=1000,required_score=5.0,rhost=host.my.lan,raddr=127.0.0.1,rport=40448,mid=<20070813120337.A2D464C4082
server.homenetwork.lan>,autolearn=no
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]