-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cron mail is rejected due to missing domain #75
Comments
I also saw Make MASQUERADE config setting override -f |
That is correct, we don't rewrite header lines. You probably should configure your smarthost not to reject mails originating from your machines/cron. |
But what happens when delivering directly to an smtp server which is not under my control ? I.e. the one from my mail provider ? |
If I'm not mistaken this is basically the discussion held in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697871, or am I wrong ? |
would you like to submit a PR for review?
…On 05/02/2020 18:03, Varac wrote:
But what happens when delivering directly to an smtp server which is
not under my control ? I.e. the one from my mail provider ?
I think it would be a great feature to append the |MAILNAME| to any
|from| address without a specific domain. This would solve this issue
out of the box.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#75?email_source=notifications&email_token=AABLOO7IHIJJY2BAATOKSQTRBLWPFA5CNFSM4KQKU26KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK4GC6Y#issuecomment-582508923>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLOO4Z4CLG7MRC3B4UHOLRBLWPFANCNFSM4KQKU26A>.
|
I would, but I can't since I haven't written a single line of C in my whole life! |
But I'm happy to test any PR and give feedback. |
Actually this is discussed here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830518, but is related to the one you mentioned. That bug has been partially fixed, but the unqualified |
See related issue #21 |
@vlyon Thanks for the correct link, this debian bug report describes my issue pretty well. |
@corecode Is there any chance to get this fixed soon ? Without this I need to look for another alternative, since recieving system/cron-mails is pretty important for me. |
Not by me - happy to review and merge pull requests.
…On 12/02/2020 13:19, Varac wrote:
@corecode <https://github.com/corecode> Is there any chance to get
this fixed soon ? Without this I need to look for another alternative,
since recieving system/cron-mails is pretty important for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#75?email_source=notifications&email_token=AABLOO6TMWCXFNQM526GAW3RCPSOHA5CNFSM4KQKU26KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELQSEEI#issuecomment-585179665>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLOO4IELZ4GDVVCY5TWRLRCPSOHANCNFSM4KQKU26A>.
|
Did you find a solution to this? I am also having trouble to get DMA to work with anything else than gmail (e.g. gmx.net does not work). |
I have found a workaround for this issue, and have been using it for some time now on Debian. I use a simple perl script that I've written, to send email from cron via DMA. In my Then the
|
I've added header From rewriting to dma. I'll open a PR. |
thanks!
…On 12/04/2021 07:46, Jernej Jakob wrote:
I've added header From rewriting to dma. I'll open a PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#75 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLOOZB3GDCNN6QA4TIPODTILTSFANCNFSM4KQKU26A>.
|
If it can help I had the same problem and I have solved it by applying this diff against tag 'v0.13' `
` It simply reject the first |
Drop the anyway malformed "From: root (Cron Daemon)" That cron daemon place by default at head of its messages. Just like mistakenly inserted RFC-976 "From_" or ">From_" are already dropped. When not removed, lot of modern mail delivery service will reject or silently drop the message. Only some very new version of cron can change this behavior and it is not the default. On old version there is nothing you can do. When removed the expediter is available anyway by the mail envelop. Then no meaningful information is lost.
|
OK may be not strictly speaking "invalid" by RFC criteria.
If most mail provider reject it, for my usage it is the same as "invalid". I will keep the workaround on my fork as long as I have no better solution to get my cron report to find their way to my mailbox. |
do the providers also reject it if you authenticate for delivery?
On September 6, 2024 11:50:01 AM CDT, HenriGEIST ***@***.***> wrote:
OK may be not strictly speaking "invalid" by RFC criteria.
But wired, and rejected by all 3 smarthosts I have tried :
- "smtp.gmail.com";
- "mail.gandi.net";
- "smtp.laposte.net".
If most mail provider reject it, for my usage it is the same as "invalid".
I will keep the workaround on my fork as long as I have no better solution to get my cron report to find their way to my mailbox.
If it help someone else that's good. If not there is no harm.
--
Reply to this email directly or view it on GitHub:
#75 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
I am not sure what you mean by "authenticate" but I always use login and password on the SMTP before sending a mail. My /etc/dma/dma.conf contain : ` PORT 465 ALIASES /etc/aliases AUTHPATH /etc/dma/auth.conf SECURETRANSFER MAILNAME /etc/mailname MASQUERADE [email protected] And my /etc/dma/auth.conf contain :
Everything work well with the patch and fail silently without it. |
that seems like a big problem with gandi.net. it should never discard a message once it accepts it.
On September 6, 2024 2:59:26 PM CDT, HenriGEIST ***@***.***> wrote:
I am not sure what you mean by "authenticate" but I always use login and password on the SMTP before sending a mail.
If I don't nothing goes by what ever I do with the "From:" line in the mail content.
My /etc/dma/dma.conf contain :
`
SMARTHOST mail.gandi.net
PORT 465
ALIASES /etc/aliases
AUTHPATH /etc/dma/auth.conf
SECURETRANSFER
MAILNAME /etc/mailname
MASQUERADE ***@***.***
`
And my /etc/dma/auth.conf contain :
`
***@***.***|mail.gandi.net:WWWWWW
`
Everything work well with the patch and fail silently without it.
No error message, /var/log/mail.log say ***@***.***> delivery successful"
Just without the patch the mail never reach destination.
--
Reply to this email directly or view it on GitHub:
#75 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Maybe but exact same situation with 'smtp.laposte.net'. |
But in fact I do not now where exactly it is discarded. |
I'm using this configuration:
to send all mails to a docker container running an smtp replay which accepts mail on port 25 and forwards it to
a mail hub using smtp auth.
I can send mail fine using the
mail
command like this:But cronmail is rejected because the
From:
header isroot (Cron Daemon)
without any domain.My smtp relay rejects it with these message:
t (Cron Daemon)): unqualified address not permitted: failing address in "From:" header is: root (Cron Daemon)
Shortly after that, a bounce notification is also rejected:
And i end up having 2 mails in the
/var/spool/dma/
spool directory:What am I doing wrong ? Unfortunatly you can't configure the
From
address for cron mails, so there's nothing I can do about this on cron's side.The text was updated successfully, but these errors were encountered: