I need to send emails automatically and regularly triggered by an event.
For the sake of simplicity and robustness i chose mail / mailx.
. I can send email to myself using my own MBP name firstname.lastname@example.org
. I cannot send any email to outer addressees
in /var/mail/mine I got errors either "Connection refused" or "No route to host"
that is in case of gmail.com domain.
. Than I tried to configure mailx to use remote mail server smtp.gmail.com:587
(this one is used by my mail in Lion )
Here is the ~/.mailrc congfig
alias MYGROUP xxxx yyyy zzzz
I started mailx -n -v so the mailrc was used since the delivery report showed all three mails but
resulting in the same errors above and using the port 25 as if all set commands were ignored.
Question: Is there a way to have it worked with this kind of configuration, if so what did I wrong.
(They say it works in Linux / Solaris environment)
Retrieving data ...