-
Notifications
You must be signed in to change notification settings - Fork 43
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
allmailfrom setting not having the desire effect #72
Comments
I am having a similar problem. I realised that envelope sender change as discussed in #13 and #55 will not do much good if the provider strictly checks username==sender==from, as Migadu does:
I am still not sure what the |
Unfortunately,
Setting the global
in A wrapper script has technically worked, but my SMTP still rejected with Message rejected under suspicion of SPAM, so not an option either. Found this |
It is an issue that deserves fixing directly here, not with a wrapper. Having control over "From" and "Sender" is often needed. Not sure it should be done via But honestly |
Yeah, |
I've tried to check how how It works with nullmailer's sendmail and mail from mailutils. Filepath is hardcoded because I'm not familiar with automake/autoconf generated variables.
|
I just encountered this problem too when trying to use nullmailer with a custom From. Is there any other way (than modifying the source code) to achieve this? do we know if it's a bug or not? or shall I just use another service? |
I think I have figured it out. I have created a patch which replaces
I have created a pull request with my fix. #84 |
Unfortunately setting NULLMAILER_USER and NULLMAILER_HOST doesn't help when the program that creates the email already sets a sender address. nullmailer-inject has the flag "f", which: "Ignore and remove any From header lines and always insert a generated one" As a workaround we can use a wrapper script as suggested in this thread and in https://www.atwillys.de/content/linux/force-nullmailer-to-use-a-fixed-from-address/:
This will append the address from /etc/nullmailer/allmailfrom as a sender address to every sendmail call. After this the "f" flag will kick in, remove the original from header and all occurences of the original from address will be gone. Now every script on your system can create emails with whatever from addresses it wants, as those addresses will all be overwritten. You only have to make sure to always have NULLMAILER_FLAGS=f set. Add |
Well, darn, just hit this on Debian 12 (Bookworm). I quickly fell in love with the simplicity of nullmailer, but my SMTP server (postmark) is pretty strict about the email address in the From line. I need it to be a specific one. |
Same here, Zoho bounces email with |
I want all the emails that Nullmailer sends to come from email address
new@xxxx.xx
so I set this address in my allmailfrom file. The SMTP relay host I am using expects email from this address, but when I send a test message then there is a bounce in the log file and then it's moved to the failed folder, look at the file the first line implies the re-write has worked but the actual from address in the email is still the old one:This is occurring on Nullmailer 2.2 as distributed with Debian 10.
Is there perhaps another setting I need?
The text was updated successfully, but these errors were encountered: