Search Results

qmail adds number to recipient header

qmail sometimes adds a number to the recipient header when delivering mail locally, so for example, user@domain.com may become 3-user@domain.com.  This isn’t such a problem when mail is just being used locally, but if your using a POP connector to download mail to an Exchange server for example it will cause issues with it getting […]

Managing the Qmail queue

/var/qmail/bin/qmail-qstat or for more detailed info: /var/qmail/bin/qmail-qread qmail configuration: /var/qmail/control list count of email addresses in queue grep -h “^From:” /var/qmail/queue/mess/*/* | sort | uniq -d -c for big big queues: (will take a while) find /var/qmail/queue/mess/21/  -type f -print0 | xargs -0 -P1 -n64 grep -h “^From:” |sort | uniq -d -c search through […]

Qmail: forward emails to a PHP script

In qmail, first add the domain alias. For myscript@servername make /var/qmail/alias/.qmail-myscript If its for myscript@mydomain.com /var/qmail/mailnames/mydomain.com/.qmail-myscript should do it. Contents need to be along the lines of: |/var/www/vhosts/mydomain.com/httpdocs/script.php references: http://www.devarticles.com/c/a/PHP/Incoming-Mail-and-PHP/1/ http://forum.swsoft.com/showthread.php?t=40510&highlight=qmail+alias

POP3S IMAPS and SMTPS on Plesk

Setup SSL certificates for mail services (pop3s, imaps, smtps) on Plesk / Courier-Imap / Qmail Either get a certificate from a CA: openssl genrsa 1024 > host.key openssl req -new -nodes -key host.key -out host.csr Put the certificate received into host.crt or generate your own: openssl genrsa 1024 > host.key openssl req -new -x509 -nodes […]

PHP sends mail as anonymous@servername

The from address is not enforced.  This can cause some PHP formmail script emails to be treated as spam.  Fix: 1) add a -f(sender address) parameter: mail($to, $subject, $message, $headers, ‘-fsomeone@somewhere.com’); 2) add a Return-Path header: mail($to, $subject, $message, ‘Return-Path: someone@somewhere.com\r\nFrom: someone@somewhere.com’); Qmail is *meant* to check for the from address field in Sender, From, […]

Plesk for Linux – PCI Compliance

Courier Weak SSL Ciphers and SSLv2 The most common flaw uncovered by a PCI compliance scan is that a service is allowing SSL connections using weak SSL ciphers. Disable SSLv2 in Courier by adding the following line to both /etc/courier-imap/imapd-ssl and /etc/courier-imap/pop3d-ssl: TLS_CIPHER_LIST=”HIGH:MEDIUM:!SSLv2:!LOW:!EXP:!aNULL:@STRENGTH” After restarting Courier, test with openssl to confirm SSLv2 has been disabled […]