Revision [4024]
Last edited on 2011-06-20 08:03:11 by KenFongAdditions:
==[[PostfixMassmail Massmail handling]]==
Revision [3798]
Edited on 2010-08-17 00:05:05 by KenFongAdditions:
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'
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 WikiAdminAdditions:
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
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:
Revision [2348]
Edited on 2009-07-02 02:52:54 by WikiAdminAdditions:
---
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
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 WikiAdminAdditions:
==[[PostfixSmarthost Postfix Smarthost]]==
Revision [2213]
Edited on 2009-02-20 03:09:21 by WikiAdminAdditions:
==Block senders==
http://www.cyberciti.biz/faq/howto-blacklist-reject-sender-email-address/
http://www.cyberciti.biz/faq/howto-blacklist-reject-sender-email-address/
Revision [2195]
Edited on 2009-02-12 00:17:22 by WikiAdminAdditions:
==whitelist/blacklist==
%%(text; local.cf)
# Whitelist important senders
whitelist_from *@gooddomain.tld
# Blacklist bad senders
blacklist_from *@baddomain.tld
%%(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 WikiAdminAdditions:
==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.
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 WikiAdminAdditions:
Content inspection & redirect - http://www.postfix.org/header_checks.5.html
Deletions:
Revision [2049]
Edited on 2008-10-23 01:26:10 by WikiAdminAdditions:
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
Mangle with header - http://www.postfix.org/header_checks.5.html
Deletions:
Revision [1940]
Edited on 2008-09-10 00:27:03 by WikiAdminAdditions:
==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.
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 WikiAdminAdditions:
==[[PostfixVirtualHost Postfix virtual hosting]]==
Deletions:
Revision [1929]
Edited on 2008-09-08 01:02:49 by WikiAdminAdditions:
[[PostfixVirtualHost Posrfix virtual hosting]]
-----
-----
Revision [1886]
Edited on 2008-08-08 09:20:49 by WikiAdminAdditions:
More reading: http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix
Revision [1885]
Edited on 2008-08-08 09:17:58 by WikiAdminAdditions:
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.
- Your client need to deliver via network, not using sendmail.
- You have spamassass service started.
Deletions:
Revision [1884]
Edited on 2008-08-08 08:52:15 by WikiAdminAdditions:
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!
-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 WikiAdminAdditions:
==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}
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 WikiAdminAdditions:
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}
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:
%%(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 WikiAdminAdditions:
==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!
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!