Revision [4024]

Last edited on 2011-06-20 08:03:11 by KenFong
Additions:
==[[PostfixMassmail Massmail handling]]==


Revision [3798]

Edited on 2010-08-17 00:05:05 by KenFong
Additions:
With mysql and dovecot
make -f Makefile.init makefiles \
'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH \
-DDEF_SERVER_SASL_TYPE=\"dovecot\"' \
'AUXLIBS=-L/usr/lib64/mysql -lmysqlclient -lz -lm'


Revision [2349]

Edited on 2009-07-02 03:09:24 by WikiAdmin
Additions:
smtpd_recipient_restrictions =
permit_mynetworks,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unauth_destination,
reject_unauth_pipelining,
reject_non_fqdn_recipient,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client psbl.surriel.com,
reject_rbl_client combined.njabl.org,
reject_rbl_client dnsbl.sorbs.net
Deletions:
smtpd_recipient_restrictions = permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unauth_destination, reject_unauth_pipelining, reject_non_fqdn_recipient


Revision [2348]

Edited on 2009-07-02 02:52:54 by WikiAdmin
Additions:
---
smtpd_delay_reject = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unauth_destination, reject_unauth_pipelining, reject_non_fqdn_recipient


Revision [2306]

Edited on 2009-05-26 00:07:04 by WikiAdmin
Additions:
==[[PostfixSmarthost Postfix Smarthost]]==


Revision [2213]

Edited on 2009-02-20 03:09:21 by WikiAdmin
Additions:
==Block senders==
http://www.cyberciti.biz/faq/howto-blacklist-reject-sender-email-address/


Revision [2195]

Edited on 2009-02-12 00:17:22 by WikiAdmin
Additions:
==whitelist/blacklist==
%%(text; local.cf)
# Whitelist important senders
whitelist_from *@gooddomain.tld
# Blacklist bad senders
blacklist_from *@baddomain.tld


Revision [2133]

Edited on 2008-12-30 21:42:07 by WikiAdmin
Additions:
==spamassin web admin==
This tool will let you edit the preference file http://wiki.apache.org/spamassassin/WebUserInterfaces
I point it to /var/spool/spamd/.spamassassin/user_prefs, which is the server-wide preference file used in this particular installation. Haven't figured out how to set up postfix+spamassin with user preference files.


Revision [2050]

Edited on 2008-10-23 01:26:42 by WikiAdmin
Additions:
Content inspection & redirect - http://www.postfix.org/header_checks.5.html
Deletions:
Mangle with header - http://www.postfix.org/header_checks.5.html


Revision [2049]

Edited on 2008-10-23 01:26:10 by WikiAdmin
Additions:
Virtual postfix - http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-mandriva2008.1
Mangle with header - http://www.postfix.org/header_checks.5.html
Deletions:
http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-mandriva2008.1


Revision [1940]

Edited on 2008-09-10 00:27:03 by WikiAdmin
Additions:
==SMTP routes or transport maps==
Add the following to main.cf:
transport_maps = hash:/etc/postfix/transport
proxy_read_maps = $transport_maps
Then create /etc/postfix/transport in this format. line 2 says all sub domains should be routed there as well
domain.tld smtp:1.2.3.4
.domain.tld smtp:1.2.3.4
Run **postmap /etc/postfix/transport** to create the hash.


Revision [1930]

Edited on 2008-09-08 01:03:11 by WikiAdmin
Additions:
==[[PostfixVirtualHost Postfix virtual hosting]]==
Deletions:
[[PostfixVirtualHost Posrfix virtual hosting]]


Revision [1929]

Edited on 2008-09-08 01:02:49 by WikiAdmin
Additions:
[[PostfixVirtualHost Posrfix virtual hosting]]
-----


Revision [1886]

Edited on 2008-08-08 09:20:49 by WikiAdmin
Additions:
More reading: http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix


Revision [1885]

Edited on 2008-08-08 09:17:58 by WikiAdmin
Additions:
Edit /etc/mail/spamassassin/main.cf to suit your taste, then restart postfix and test! Not working, check the followings:
- Your client need to deliver via network, not using sendmail.
- You have spamassass service started.
Deletions:
Edit /etc/mail/spamassassin/main.cf to suit your taste, then restart postfix and test! Your client need to deliver via network, not using sendmail!


Revision [1884]

Edited on 2008-08-08 08:52:15 by WikiAdmin
Additions:
smtp inet n - - - - smtpd
-o content_filter=spamassin
spamassin unix - n n - - pipe
flags=Rq user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
Edit /etc/mail/spamassassin/main.cf to suit your taste, then restart postfix and test! Your client need to deliver via network, not using sendmail!
Deletions:
# -----------------------------------------------------------------------------------
smtp inet n - - - - smtpd
-o content_filter=spamassassin
# -----------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------
spamfilter unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -i ${sender} ${recipient}
# -----------------------------------------------------------------------------------
Edit /etc/mail/spamassassin/main.cf to suit your taste, then restart postfix and test!


Revision [1883]

Edited on 2008-08-08 07:43:15 by WikiAdmin
Additions:
==Postfix and Dspam==
smtp inet n - n - - smtpd
-o content_filter=dspam:
dspam unix - n n - 10 pipe
flags=Rhqu user=dspam argv=/usr/local/bin/dspamit ${sender} ${recipient}


Revision [1882]

Edited on 2008-08-08 07:40:59 by WikiAdmin
Additions:
Create user
useradd -s /bin/false spamd
smtp inet n - - - - smtpd
-o content_filter=spamassassin
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -i ${sender} ${recipient}
Deletions:
Create a wrapper script
%%(bash;spamfilter.sh)
#!/bin/bash
/usr/local/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?ate a wrapper script
Change owner and permission
useradd -s /bin/false spamfilter
chown spamfilter:spamfilter /usr/local/bin/spamfilter.sh
chmod 711 /usr/local/bin/spamfilter.sh
smtp inet n - n - - smtpd
-o content_filter=spamfilter:dummy
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} -- ${recipient}


Revision [1881]

Edited on 2008-08-08 00:12:54 by WikiAdmin
Additions:
==spamassassin and postfix==
Create a wrapper script
%%(bash;spamfilter.sh)
#!/bin/bash
/usr/local/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?ate a wrapper script
Change owner and permission
useradd -s /bin/false spamfilter
chown spamfilter:spamfilter /usr/local/bin/spamfilter.sh
chmod 711 /usr/local/bin/spamfilter.sh
Edit master.cf
# -----------------------------------------------------------------------------------
smtp inet n - n - - smtpd
-o content_filter=spamfilter:dummy
# -----------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------
spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} -- ${recipient}
# -----------------------------------------------------------------------------------
Edit /etc/mail/spamassassin/main.cf to suit your taste, then restart postfix and test!


Revision [1724]

The oldest known version of this page was created on 2008-05-15 07:25:27 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki