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.

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

1 Answer 1

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

 
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.