This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re[2]: ssmtp and cron


Hallo Elfyn,

Sunday, October 6, 2002, 9:49:53 PM, you wrote:

E> I forgot to mention this bit of important info...

E> Unless you config file has the domain that you use for email (hadiko.de) in
E> the rewriteDomain directive it will not work correctly. Also if you use
E> other names other than the one in front of the `@' it may cause probs...

E> Sorry i didnt mention this before.

Well, thanks very much. I guess that was it. rewriteDomain was set to
m111.hadiko.de instead of hadiko.de.

After I changed that the error message:

/usr/sbin/ssmtp: smtp server didn't accept MAIL From, replied "553 5.5.4 <root>... Domain name required for sender address root".

changed into:

/usr/sbin/ssmtp: smtp server didn't accept RCPT To: command, replied "550 5.1.1 <admin@hadiko.de>... User unknown".

which was a beginning. The only place where "admin" stood was the
MAILTO=admin line in the crontab.
I found out that the MAILTO env-var specified the To: field in the
email. Setting it to "merkosh" would only work if there was a user
merkosh@hadiko.de (user merkosh known to the smtp host).
Setting it to an arbitrary e-mail adress would work if the address
existed.
According to /usr/doc/Cygwin/ssmtp-2.38.7.README, setting MAILTO=""
would send no mail and leaving MAILTO undefined will send an e-mail to
user merkosh who's address is taken from the /etc/ssmtp/revaliases
file (which works).
However, this all would just work if #FromLineOverride=YES was
commented out. Don't know why. Otherwise the "didn't accept MAIL
From..." error occured.

I probably send some time mails to root@hadiko.de during testing... ;)
Well - Thank you very much again.

Ciao
Uwe                            mailto:merkosh@planet-interkom.de


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]