Hi,

I am having one heck of a time setting up basic email service with this server.

Currently using postfix.

Emails stay in queue forever, and if I force them I get

Forcing the attempted delivery of mail with the command postqueue -c /etc/postfix -f ..

postqueue: warning: unable to look up public/qmgr: No such file or directory
postqueue: fatal: Cannot flush mail queue - mail system is down

Turned off the ufw firewall for this testing so I know it’s not the firewall.

Thanks

18 comments
  • Which DO tutorial are you using to set up postfix?

  • @yorkdigitalsolutions - You’re using one of the simpler tutorials, which means you probably need to mainly examine /var/log/mail.log to look for errors. Try sending mail again then look at the bottom of that log file. Post those errors with the appropriate edits for any sensitive info.

  • Yes post logs. First of all make sure that the postfix service is actually running :)
    Also maybe check file ownership of the postfix files. You can run the command ‘postfix check’ to see if there are any errors there as well.

    here’s the man page. http://www.postfix.org/postfix.1.html

  • here is the log for the test email today

    Feb 24 00:00:59 yorkdigitalsolutions postfix/postdrop[19626]: warning: unable to look up public/pickup: No such file or directory
    Feb 24 04:00:01 yorkdigitalsolutions postfix/postdrop[21094]: warning: unable to look up public/pickup: No such file or directory
    Feb 24 07:02:36 yorkdigitalsolutions postfix/postdrop[22452]: warning: unable to look up public/pickup: No such file or directory
    Feb 24 22:26:31 yorkdigitalsolutions postfix/postqueue[28276]: warning: Mail system is down – accessing queue directly
    Feb 24 22:26:32 yorkdigitalsolutions postfix/postqueue[28283]: warning: Mail system is down – accessing queue directly
    Feb 24 22:26:44 yorkdigitalsolutions postfix/postqueue[28293]: warning: Mail system is down – accessing queue directly
    Feb 24 22:27:03 yorkdigitalsolutions postfix/postqueue[28302]: warning: Mail system is down – accessing queue directly
    Feb 24 22:38:10 yorkdigitalsolutions postfix/postdrop[3242]: warning: unable to look up public/pickup: No such file or directory

  • Postfix check returns the following

    postfix/postfix-script: warning: /var/spool/postfix/etc/ssl/certs/ca-certificates.crt and /etc/ssl/certs/ca-certificates.crt differ

  • Show 13 more comments

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

I used this one : https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-postfix-on-ubuntu-14-04

Should I be using another? What I would like is to have php be able to send mail to customers and wordpress to be able to email out passwords and such.

Thanks

@yorkdigitalsolutions - You have both sendmail and postfix installed and active. You need to disable sendmail for postfix to work.

Submit an Answer