Am Fr., 21.01.2022, 12:45 hat Robert Pommrich <
[email protected]> geschrieben:
Moin,
ich nutze msmtp, um Systemmails an eine GMX-Adresse zu senden.
Versand mit dem Programm mail aus bsd-mailx funktioniert:
echo bla| mail -s "root login" [email protected]
Bei cronjobs bekomme ich jedoch:
Jan 17 06:27:25 keller cron[1138]: sendmail: the server did not accept
the mail
Jan 17 06:27:25 keller cron[1138]: sendmail: server message:
554-Transaction failed
Jan 17 06:27:25 keller cron[1138]: sendmail: server message: 554-Reject
due to policy restrictions.
Jan 17 06:27:25 keller cron[1138]: sendmail: server message: 554 For explanation visit https://postmaster.gmx.net/en/error-messages?ip=2.203.203.187&c=hi
<
https://postmaster.gmx.net/en/error-messages?ip=2.203.203.187&c=hi>
Jan 17 06:27:25 keller cron[1138]: sendmail: could not send mail
(account default from /root/.msmtprc)
Jan 17 06:27:25 keller CRON[20351]: (root) MAIL (mailed 374 bytes of
output but got status 0x0045 from MTA#012)
Die /etc/msmtprc enthält:
defaults
port 587
tls on
account [email protected]
host mail.gmx.net
from [email protected]
auth on
user [email protected]
password "passwort"
account default: [email protected]
aliases /etc/aliases
aliases enthält:
root: [email protected]
default: [email protected]
Wo liegt das Problem?
Viele Grüße
Robert
Ich tippe darauf, dass der cron Job als root ausgeführt wird.
Gruss
Roland
<p dir="ltr"><br>
Am Fr., 21.01.2022, 12:45 hat Robert Pommrich <<a href="mailto:
[email protected]">
[email protected]</a>> geschrieben:<br>
<blockquote><p dir="ltr">><br>
</blockquote>
<p dir="ltr">> Moin,<br>
><br>
> ich nutze msmtp, um Systemmails an eine GMX-Adresse zu senden.<br> ><br>
> Versand mit dem Programm mail aus bsd-mailx funktioniert:<br>
><br>
> echo bla| mail -s "root login"<a href="mailto:
[email protected]">
[email protected]</a><br>
><br>
> Bei cronjobs bekomme ich jedoch:<br>
><br>
> Jan 17 06:27:25 keller cron[1138]: sendmail: the server did not accept<br> > the mail<br>
> Jan 17 06:27:25 keller cron[1138]: sendmail: server message:<br>
> 554-Transaction failed<br>
> Jan 17 06:27:25 keller cron[1138]: sendmail: server message: 554-Reject<br>
> due to policy restrictions.<br>
> Jan 17 06:27:25 keller cron[1138]: sendmail: server message: 554 For<br> > explanation visit<br>
<a href="
https://postmaster.gmx.net/en/error-messages?ip=2.203.203.187&c=hi">> https://postmaster.gmx.net/en/error-messages?ip=2.203.203.187&c=hi</a><br>
> Jan 17 06:27:25 keller cron[1138]: sendmail: could not send mail<br>
> (account default from /root/.msmtprc)<br>
> Jan 17 06:27:25 keller CRON[20351]: (root) MAIL (mailed 374 bytes of<br> > output but got status 0x0045 from MTA#012)<br>
><br>
> Die /etc/msmtprc enthält:<br>
><br>
> defaults<br>
> port 587<br>
> tls on<br>
> account<a href="mailto:
[email protected]">
[email protected]</a><br> > host<a href="
http://mail.gmx.net"> mail.gmx.net</a><br>
> from<a href="mailto:
[email protected]">
[email protected]</a><br> > auth on<br>
> user<a href="mailto:
[email protected]">
[email protected]</a><br> > password "passwort"<br>
> account default:<a href="mailto:
[email protected]">
[email protected]</a><br>
> aliases /etc/aliases<br>
><br>
> aliases enthält:<br>
> root:<a href="mailto:
[email protected]">
[email protected]</a><br> > default:<a href="mailto:
[email protected]">
[email protected]</a><br>
><br>
> Wo liegt das Problem?<br>
><br>
> Viele Grüße<br>
> Robert<br>
><br>
></p>
<p dir="ltr">Ich tippe darauf, dass der cron Job als root ausgeführt wird.</p> <p dir="ltr">Gruss<br>
Roland<br>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)