![]() |
Quote:
|
It's not easy to get postfix working. As noted above, your ISP may be blocking mail that you try to send. To get this working you will probably have to edit the postfix configuration file: /etc/postfix/main.cf
Here are the lines that I added or modified in my main.cf file: Code:
unknown_local_recipient_reject_code=550Here's what the mail.log looks like when mail has been sent successfully: Code:
Apr 29 08:46:50 Smooch postfix/smtp[7241]: 7D99B8232F8: to=<me@mac.com>, relay=smtp.myisp.com[2xx.xxx.xxx.xxx]:25, delay=4.3, delays=0.32/0.08/3.6/0.33, dsn=2.0.0, status=sent (250 ok: Message 140916886 accepted)As for why someone would want to send e-mail from the command line: I use it in shell scripts to notify me by e-mail when tasks have been done. For example, I have Carbon Copy Cloner send me e-mail when a backup has been done. |
| All times are GMT -5. The time now is 10:17 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.