Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed postfix on my Ubuntu server. I want it to send mail to my subscribers on the blog. I have installed the SMTP plugin for wordpress so its not using php mail. But any time anybody signs up to the blog so they can comment i get a error in my mail.log file.

disconnect from localhost[127.0.0.1]

No idea. It just wont send any mail. The test mail seems to work all the time without TLS and sometimes without it. Its flaky. The plugin is a good one and is used on lots of blogs and sites so there is no problem with that.

enter image description here

This is the settings for the plugin. And the test email at the top works if I fire one off to my gmail account. No idea why it wont work when people sign up to the blog though? Mus be something in my Postfix configs but then why does it work when sending a test mail?

Any ideas thanks?

EDIT: This is a test of MX records on mxtoolbox.com

enter image description here

share|improve this question
    
I'm not a postfix expert, but with a local smtp server install it should definitely work with the default wordpress configuration. You can safely reset your default mail settings in wordpress. This is probably a postfix configuration issue. –  Marc M Aug 14 '12 at 9:08

2 Answers 2

up vote 2 down vote accepted

Is your Postfix working correctly?

On a console try:

telnet localhost 25

After you have established the connection to your postfix mail server type

ehlo localhost

If you see the lines

250-STARTTLS 250-AUTH

among others, everything is working.

Type quit to return to the system's shell.

share|improve this answer
    
SMTP is working correctly. According to the telnet response so it appears that it must be a problem with the plugin. Thanks –  LinuxBill Aug 24 '12 at 22:56

The first step is configuring postfix correctly. Once you can telnet localhost 25 then you need to configure this plugin with a user on your Ubuntu box that can send mail with their corresponding password. Once that works, setup TLS. You do need to use SMTP auth though...otherwise you open yourself up to a open relay.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.