xenocrat / chyrp-lite

An ultra-lightweight blogging engine, written in PHP.
https://chyrplite.net/
BSD 3-Clause "New" or "Revised" License
402 stars 42 forks source link

Change sender email address domain #223

Closed roughnecks closed 10 months ago

roughnecks commented 10 months ago

Hi,

my blog is sending registration emails from www-data@domain.space, which is the actual domain. Recently I discovered that the space domain gets rejected by some known providers like Gmail, so I bought and set up an .eu virtual domain on postfix.

Since there's no email settings in chyrp-lite, is there any way I can configure it to send mail from www-data@domain.eu?

Thanks

roughnecks commented 10 months ago

Ok, think I got this by rewriting address in postfix. Will leave this open if you have suggestions, otherwise feel free to close.

xenocrat commented 10 months ago

Chyrp Lite uses PHP's mail function, with the From field set using the site contact email configured in settings. You can change that email address, use a module to respond to the "send_mail" trigger, or do it in the MTA as you have done.