Page 1 of 1

wrong hostname in Return-Path with qmail-scanner (solution)

Posted: Fri Jan 17, 2014 5:17 am
by faris
Here's something interesting I learned which I thought I'd share.

If you use qmail-scanner and you change your server's hostname, you really must run qmail-scanner-reconfigure afterwards.

This is because qmails-canner hard-codes the hostname it finds at the point when it is installed, reinstalled or reconfigured into its code, and this hard-coded hostname is used in some circumstances.

In particular, if you use mailman, the return-path in emails generated by mailman will include the hard-coded hostname.

I hope this helps someone in the future.

Re: wrong hostname in Return-Path with qmail-scanner (soluti

Posted: Fri Jan 17, 2014 10:41 am
by scott
good catch!

Re: wrong hostname in Return-Path with qmail-scanner (soluti

Posted: Fri Jan 17, 2014 3:09 pm
by prupert
More tips after changing a hostname on an Atomic / ASL machine:

rkhunter --propupd
(rkhunter needs to be aware of the new hostname)

qmail-scanner-reconfigure
(because it needs to be fixed in /var/qmail/bin/qmail-scanner-queue.pl)

Also do not forget to change the HOSTNAME setting in /etc/asl/config and run 'asl -s -f' afterwards.