mail messed up by removing qmail

3 posts / 0 new
Last post
#1 Sat, 06/28/2014 - 12:10
remibruggeman

mail messed up by removing qmail

hello,

In an attempt to battle spam I have accidentally installed qmail. Qmail is not configured to deliver, mail on my server, so it doesn't. My users are complaining that all mail sent from webforms is not arriving.

I removed qmail and installed sendmail. Now all the webforms are complaining there is nothing to send it with (Failed to send your message. Please try later or contact the administrator by another method.)

Where can I specify which smtp to use? Which smtp was by default set by Virtualmin?

Thanks

Sat, 06/28/2014 - 12:23
remibruggeman

I found the "alternatives" command and it yielded this:

# alternatives --display mta
mta - status is manual.
link currently points to /usr/sbin/sendmail.postfix
/usr/sbin/sendmail.postfix - priority 30
slave mta-pam: /etc/pam.d/smtp.postfix
slave mta-mailq: /usr/bin/mailq.postfix
slave mta-newaliases: /usr/bin/newaliases.postfix
slave mta-rmail: /usr/bin/rmail.postfix
slave mta-sendmail: /usr/lib/sendmail.postfix
slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
/usr/sbin/sendmail.sendmail - priority 90
slave mta-pam: /etc/pam.d/smtp.sendmail
slave mta-mailq: /usr/bin/mailq.sendmail
slave mta-newaliases: /usr/bin/newaliases.sendmail
slave mta-rmail: /usr/bin/rmail.sendmail
slave mta-sendmail: /usr/lib/sendmail.sendmail
slave mta-mailqman: /usr/share/man/man1/mailq.sendmail.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.sendmail.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.sendmail.5.gz
slave mta-sendmailman: /usr/share/man/man8/sendmail.sendmail.8.gz
Current `best' version is /usr/sbin/sendmail.sendmail.

That looks good to me since the priority 30 has postfix and priority 90 sendmail. Where else could I look?

Mon, 06/30/2014 - 05:26
remibruggeman

found the problem. In the php.ini (both local and global) the mail path was /usr/sbin/sendmail while it should have been /usr/sbin/sendmail.postfix. Mail is now being delivered.

Topic locked