Wim Haanstra
New Pleskian
I have a Plesk 12.5 installation, running on a CentOS machine, which uses Postfix for SMTP.
I have a domain, which is hosted on this machine, but the MX records for this domain point to a different server. The application that is running on this machine (Ruby on Rails site), needs an SMTP server to send certain emails.
The RoR application has this server configured as SMTP server, with a username and password for a user I created using Plesk.
If I have the Mail service for this site enabled, none of the emails are getting delivered to the right server. Emails are rejected with the message "Recipient address rejected: User unknown in virtual mailbox table;". (This is logical, because the account the email is send to, doesn't exist on the server).
If I disable the mail service for this domain, I can no longer send email using my application, because password authentication fails (which is also logical).
Is there a way to have both? Be able to send emails from the server using an email address from the domain that is hosted on the machine, but they are send to the right server?
I have a domain, which is hosted on this machine, but the MX records for this domain point to a different server. The application that is running on this machine (Ruby on Rails site), needs an SMTP server to send certain emails.
The RoR application has this server configured as SMTP server, with a username and password for a user I created using Plesk.
If I have the Mail service for this site enabled, none of the emails are getting delivered to the right server. Emails are rejected with the message "Recipient address rejected: User unknown in virtual mailbox table;". (This is logical, because the account the email is send to, doesn't exist on the server).
If I disable the mail service for this domain, I can no longer send email using my application, because password authentication fails (which is also logical).
Is there a way to have both? Be able to send emails from the server using an email address from the domain that is hosted on the machine, but they are send to the right server?