megabyte-labs / install.doctor

A glorious combination of application / theme settings and a performant cross-platform, desktop-oriented software suite.
https://megabyte.space
Other
99 stars 22 forks source link

Sendmail Improvements #77

Open ProfessorManhattan opened 1 year ago

ProfessorManhattan commented 1 year ago

💡 Feature/Idea

Hey, I took your workwith /etc/aliases and took it a step further. It's successfully sending w/ SendGrid right now. There is one feature I would like to add though. We need to configure the aliases so that when an email is sent to root or username, the message stays in the local mailbox but also gets forwarded to the e-mail address specified in the /etc/aliases file. Right now, it's just forwarding to the e-mail address.

:thumbsup: Can you contribute?

No response

enggnr commented 1 year ago

@ProfessorManhattan, I see that the .forward method is also configured by the script. It appears that when the .forward method is used, mails first land in the local mailbox and then a copy get forwarded, whereas, in the aliases method, mails are just forwarded without local delivery. Could please remove the changes to the /etc/aliases file, rerun the newaliases command, restart postfix and test?