• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Postfix configuration - Relay to different places depending on sending domain

DRY411S

Basic Pleskian
I am hosting a PLESK server in Google Cloud, which will not let me send mail direct from the server. Instead, I must configure the PLESK server with an SMTP relay, and am using mailgun as the relay provider.

I am using the instructions that an be found at: Sending email with Mailgun | Compute Engine Documentation

What this does is send all the email from domains hosted on the PLESK server through a single Mailgun account. i.e. Many domains -> One Mailgun account

This works fine and wasn't an issue because the amount of email did not exceed Mailgun's free tier (10,000 mails per month).

However, Mailgun are now charging for every email, and I want therefore to ask each domain owner to open their own Mailgun account, pay Mailgun themselves, and change the PLESK Postfix server so that each domain's email is sent to a separate Mailgun account. i.e One domain -> One Mailgun account (many times)

Can anybody explain how I can set up postfix so that a different relay is used for each domain on the server please. To be more precise, the relay will be the same in each case, but the user/password will be different per domain.
 
Thanks for the reply. I am aware of what the PLESK docs say about this. To achieve what I have already, with respect to MailGun, I could not use PLESK GUI, and had to manually edit postfix configuration files. I would expect to do the same for my question, but I just don't know how.

Lots on the internet about this but I don't understand some of the postfix 'directives' enough to make it work. Was hoping somebody in the PLESK community may have had success.
 
Last edited:
Back
Top