Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does postfix with php's mail command get configured during installation based on the network connection?

I am asking this because I installed it when I was connected to my home network. and I can send emails no problem. However, when I need to work remotely, and connect to the internet using a USB 3G dongle, I can no longer send out emails from php.

When I get back home, and connect to my home network, I can send emails via php perfectly again.

share|improve this question

You can verify what the problem is by checking /var/log/mail.log immediately after trying to send an email.

My quess is that the 3g network you're using might be blacklisted, which would be understandable. This would result with emails being rejected by the destination email server and an appropriate message in the log file.

share|improve this answer

Your Answer


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.