Posts Tagged ‘Qmail’

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

Adding a secondary SMTP port in Plesk

Choose an unused port and add it to the /etc/services file, for example: smtp_alt 2525/tcp # new SMTP port Make a copy of /etc/xinetd.d/smtp_psa to /etc/xinetd.d/smtp_psa_alt and correct service line within new file: service smtp_alt Restart xinetd `/etc/init.d/xinetd restart` Edit the firewall, adding port 25025