mlandauer / cuttlefish

Transactional email server with a lovely web interface
http://cuttlefish.io
Other
1.51k stars 175 forks source link

Smart route #439

Closed ravivgolov closed 2 months ago

ravivgolov commented 2 months ago

Hello

Can an external SMTP be connected to the app to route all outgoing emails using another SMTP instead of internal postfix?

mlandauer commented 2 months ago

Yup should be possible though it has caveats. Set the environment variable POSTFIX_SMTP_HOST for the cuttlefish app and it will send via an external postfix server. See https://github.com/mlandauer/cuttlefish/blob/b78fa850174f17b236f61f8edfb2d7e1a3bc9140/config/application.rb#L53

However, you will need to be able to mount the log files of that external SMTP host to a local filesystem if you want any of the deliverability stuff to work.