in a master/slave setup i need to send all email outogoing from a certain domain to a specified relay with user and pass, without touching general sending. in db it should be; UPDATE mail_domain SET relay_host = '[smtp.altroserver.com]:587', relay_user = '[email protected]', relay_pass = 'PASSWORD' WHERE domain = 'dominiocliente.it' AND server_id = 38; is there a way to do that from the ispconfig?
Enable System > Interface > main config > mail > Show per domain relay options Then you can set a relay per domain in the email domain settings.
In the system module, not mail module. The setting is under: System > Interface > main config > mail > Show per domain relay options
thanks now i found. but this is system wide, i mean: all the server goes out from that relay. i would like to set a different route for a specific domain
i would like to set this: UPDATE mail_domain SET relay_host = '[smtp.altroserver.com]:587', relay_user = '[email protected]', relay_pass = 'PASSWORD' WHERE domain = 'dominiocliente.it' AND server_id = 38;
This is not system-wide relay; system-wide relay is under System > server config > mail and I said you should enable System > Interface > main config > mail > Show per domain relay options. It's per domain. You enable that feature there, then you go to the email domain, you will find domain-specific relay settings there now.