User Tools

Site Tools


Sidebar






newpage

linux:emailserver:courier

This is an old revision of the document!


Courier

useful commands and hints..

generate, check and activate aliases:

 makealiases; makealiases -chk; courier flush

mailq displays a list of all messages that have not been delivered yet:

 mailq|less

find relay errors:

 grep "error,relay"  /var/log/mail.log|less

Bugs & Fixes

outbound authentication

 courieresmtpd: error,relay=::ffff:9x.2x6.7x.1x5,from=<mymail@m<domain.net>,
 to=<friend@otherdomain.net>: 513 Relaying denied.

outbound authentication must be checked within the email client!

(This is the second method if pop-before-smtp fails.)

Please make sure that “Server requires authentication” is enabled in your email client.

554 error - blacklisted :(

importantDNS / reverse DNS rules:

  1. Mailserver-Software verwendet ausgehend einen vernünftigen DNS Namen z.B. servername.domain.tld
  2. A / AAAA Record setzen z.B. servername.domain.tld ⇒ IP
  3. PTR - ReverseDNS vom Provider setzen lassen z.B. IP ⇒ servername.domain.tld
  4. MX Record setzen z.B. MX1 PRIO 10 = servername.domain.tld
  5. DNS TXT / SPF Record setzen z.B. v=spf1 mx -all
  6. abuse@domain alias einrichten

Spamassassin

DNSBL AHBL is dead

DNS_FROM_AHBL_RHSBL RBL: Envelope sender listed in dnsbl.ahbl.org

remove it from /usr/share/spamassassin/20_dnsbl_tests.cf

auto-whitelist

if someone sends spam, the address can get a high POSITIVE ranking which leads to spam

remove an address from spam - must be run as root in root's folder:

  • copy auto-whitelist to /root/.spamassassin/auto-whitelist
  • spamassassin –remove-addr-from-whitelist=user@example.com
  • check: sa-awl root/.spamassassin/auto-whitelist | grep user@example.com
  • copy /root/.spamassassin/auto-whitelist back to user dir

check all auto-whitelists:

for i in /home/* ; do echo $i; sa-awl $i/.spamassassin/auto-whitelist| grep example; done;
linux/emailserver/courier.1433416494.txt.gz · Last modified: 2015/06/04 13:14 (external edit)