Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

For some reason my server has stopped sending mail, and I am not sure why. I am running Debian 5.0 with postfix. I remember setting it up using apt-get, and it worked fine.

Is there a config file that I need to update? Can I send a test email from the shell?

share|improve this question

2 Answers 2

Sending a test email from the shell can be accomplished with:

echo "test-body" | mailx -s "test-subject" username@example.com

You might need to apt-get mailx or so.

I'm not familiar with postfix, but maybe there's a log file in /var/log you can look at, or check /var/log/daemon.log.

share|improve this answer

You should check your logfiles

/var/log/mail.log
/var/log/mail.err
/var/log/daemon.log

It would be good to know if your mails are queued:

mailq

If there are mails in your queue try:

sendmail -q

Check your postfix service status:

/etc/init.d/postfix status

Please check your postfix configuration:

postfix check

Edit:

Please check your dns setup:

nslookup www.google.de

Please check if you are able to ping any of the destination domains:

ping www.google.de
share|improve this answer
    
Thanks, I see TONS of emails in the queue. I am using google apps, and see these errors in the queue: delivery temporarily suspended: connect to ASPMX3.GOOGLEMAIL.com[72.14.213.27]:25: No route to host (delivery temporarily suspended: connect to ASPMX4.GOOGLEMAIL.com[209.85.229.27]:25: Connection timed out) –  Zed Said Sep 15 '10 at 16:13
    
Please check if your dns setup works - I've edited my post. –  Andreas Rehm Sep 15 '10 at 22:32

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.