Skip to content
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

Change E-Mail From Name #18

Closed
Skyfay opened this issue Nov 19, 2023 · 3 comments
Closed

Change E-Mail From Name #18

Skyfay opened this issue Nov 19, 2023 · 3 comments

Comments

@Skyfay
Copy link

Skyfay commented Nov 19, 2023

Hey,
Thanks for the script!

Today i have a question about the SMTP Module.
I have configured it, but the emails always arrive as root <mail@example.com>.
Is there a way to change the root part to something else?

I allready tried to edit the canonical file and make a postmap but that didn't work as expected.

@Tontonjo
Copy link
Owner

Hey,

Not sure to remember well the whole thing, but if my memory does not fails me, the problem is that the mail are sent by root (the system) and as far as i know, it's not that simple to change this: you have to "rewrite" the address.

I re-digged a bit to refresh my memory, and it looks like you have to edit /etc/postfix/generic to do this, according to: [https://unix.stackexchange.com/questions/281955/postfix-smarthost-sends-as-root](this stackexchange thread).

You may want to try on your system and tell me if this is working as expected.
Did some tests on my own system right now without success at the moment, may dig into it later or fire up my lab pve installation.

I'm keeping this issue open as this may be a good thing to improve.

Regards

@Tontonjo
Copy link
Owner

Ok i managed to succeed. I faced some strange behavior as my emails were not being received on Gmail but i felt my configurations was OK as i've tested my regex and all settings: looks like Gmail blacklisted me for a while as the test works on my O365 Account but not anymore on gmail.

Will set the hostname as sender name

@Tontonjo
Copy link
Owner

Tontonjo commented Nov 19, 2023

fixed

Thanks for your suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants