• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Dual Mail Provider Error

Vianney_DELANNOY

New Pleskian
Hi,

My problem is simple :

I was using Plesk Mail system to handle all my mailboxes.

But now, I'm using Exchange for some mailboxes, and Plesk for others. All the adresse have the same domain

I've MX10 on my exchange server, and MX50 on Plesk, so when I send an email to an Ex mailbox, it goes on Ex and when the mailbox is not on EX, it checks on Plesk.
All of these features work correctly.

My problem is :

When an user of Plesk mail send an email, or when an app tries to send an email, I've Undelivered Mail Returned to Sender telling me that my adress does not exist.

Same when I try to forward.

So, How can I force Plesk to use my MX configuration and not just look in his mailbox list to see if the user exist?

Thanks in advance,
 
Here's my configuration file.

postfix/main.cf == http://pastebin.com/nSpP5ktB
postfix/master.cf == http://pastebin.com/5C34EpcU

The error in mail:
This is the mail system at host sd-XXXXX.dedibox.fr.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
<[email protected]> (expanded from <User_Using_Exchange_mailbox@domain.com>): Cette adresse n'existe pas dans notre annuaire. ( This address is not in the address list)

The maillog about this error : http://pastebin.com/5U8cn4BB

I'm not using DNS on domain. I've MX10 on my exchange server, and MX50 on Plesk

Thanks in advance,
 
Hi, I have similar issue.

I have one domain who uses gmail, but would like to have mail service enabled so they can use smtp from server.

But whenever someone on the same server sends an email to that domain he gets that same error.
It seems that plesk checks if the mail service is enabled on the server for that domain, and if it is then it wont send the email to the outside world.

Is there a feature to disable when plesk sends mail to "look first internal" and send right away out ?
 
Hi Vianney_DELANNOY,

you have to setup your DNS - entries on your providers nameserver correctly in order to make this work properly.

For your IP "195.XXX.XXX.59" there are missing records.
For your IP "88.XXX.XX.59" there are missing records.
For your IP "88.XXX.XXX.37" there are no records at all.


Hi Jon_Petur,

if you wish you get some suggestions it is really wise to include error - logs and/or corresponding configuration files. There is no such feature that you are asking for, but you can handle quite a lot of specific configurations when you manual edit your configuration files.
 
For your IP "195.XXX.XXX.59" there are missing records.

Can you tell me what is missing ? I've 2 MX records.
When I use external provider to send mail, it works great. The problem is when mail is sent by Plesk, it doesn't send outside if he knows the domain.

Thanks,
 
Hi Vianney_DELANNOY,

to check YOURSELF, what records are missing on the providers nameserver, please use a site like "http://www.dnsgoodies.com/" for example. There are tons of websites on the net, where you can check your nameserver entries. Be aware that Plesk is not your primary DNS - nameserver, when you rented a server and IPs - you have to make sure, that you use the nameserver from your DNS - provider, in order to setup some basic DNS - entries ( PTR, NS, A, CNAME, MX ).

Your provider has as well an online documentation, which you can find here: http://documentation.online.net

Your initial setup is done over: https://console.online.net/

Your provider uses as well a forum, where you can find HOWTO's , questions and suggestions: http://forum.online.net/
 
Hi UFHH01 and thank you for making the time to assist.

I get the same error as Vianney_DELANNOY. Here is my error:
SMTP Error (550): Failed to add recipient "[email protected]" (5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table).

I am sending an email from a email within a plesk server to another user who is using gmail but his domain has mail service enabled (it must be enabled).
The error indicates that the email user does not exist, and he doesn't exist locally but he does with his google apps account.

Not sure what configuration you would like to get, but this server is running as main DNS.

I think I found some solution to this but I am not sure how to implement it to Plesk. Here is the answer I found:
Taken from: http://serverfault.com/questions/349108/postfix-force-server-to-send-mail-outside-of-localhost
"
you could also use the /etc/postfix/transport file to selectively define which smtp server should handle what domains mails. Like, if you want to send mydomain.com email to smtp.mydomain.com you could write into /etc/postfix/transport:

mydomain.com smtp:[smtp.mydomain.com]

Dont forget to do postmap /etc/postfix/transport afterwards, to create the .db file postfix uses."

Thanks again for your help.
 
Hi Jon_Petur,

please have a look at your "/etc/postfix/main.cf". You will there find the definition:

transport_maps = , hash:/var/spool/postfix/plesk/transport
To use GMail for example, BEFORE using the local mail - server, you have to edit the definition like:

transport_maps = hash:/etc/postfix/transport, hash:/var/spool/postfix/plesk/transport
Afterwards, please create this additional transport method, by creating the file "transport" at "/etc/postfix/" and add inside the defintion:

example.com smtp:[example.com]
With the definition in brackets, you tell postfix to ignore any MX - record in your DNS - settings.

To finish your setup, please use these two commands:

postmap /etc/postfix/transport
postfix reload

If you would like to define other specifications, please see the postfix manual for it: http://www.postfix.org/transport.5.html
 
Hi and thank you for your help.

This did not solve my case :(
Also, I do not need to ignore any MX records in DNS settings, the MX records point to google servers but Plesk totally ignores that when its internal mail.

I was told from another source that this was not possible to do with Plesk mail service turned on, which I think is really low imo.
 
Hi Jon_Petur,

if the provided solution doesn't work for you, I would suggest to include error - logs and depending configurations, because just guessing, what might be misconfigured will lead to a very long procedure.

... and sorry to say that, but if "a source" thinks, that this might not be possible, then just leave him with/her with his/her opinion. It's hard to discuss with people, who give up solving issues, because they don't investigate enough. :p
 
Hi, I am not getting any new errors. As soon as I enable mail service for that domain I get that error:
SMTP Error (550): Failed to add recipient "[email protected]" (5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table).

I also found this in meantime: https://support.google.com/a/answer/2956491?hl=en
Which led me to gmail's relay smtp: smtp-relay.gmail.com
If I try this with mail service disabled I get an error that authentication is missing, which makes sense. But when I enable mail service again I do not even get that error, only Error 550 user not in virtual mailbox table.

You want me to post errror logs and configurations, I do not get any other error's and what configuration would you like to see ?

Just to be clear, I am trying to send email to a domain that is using gmail/google apps and has mail service enabled. The server doesn't let me because mail service is enabled for that domain internal.

MX records in DNS point to google.
 
Hi Jon_Petur,

... and you have the same error, if you use the provided suggestion above with all steps?

Due to the case that your issue is mail - server related, you should consider providing your mail - server configurations. :)
 
Hi,
Yes, I tried all of the steps above, the steps worked if mail service was disabled (then it went straight to google servers), but if I had the mail service enabled then I get the same error.
Here is my main.cf file - My transport file is empty atm, so nothing to see there.

Let me know if you would like to see any other files.
 

Attachments

  • main.txt
    27.9 KB · Views: 3
Hi Jon_Petur,

please make sure, that your DNS configurations are configured like described here: http://www.google.com/support/a/bin/answer.py?answer=174125

... and add as well your own MX with priority 30:

MX 30 mail.example.com
Please don't forget that it helps to configure correct SPF - entries as well and you might change "example.com smtp:[example.com]" to "example.com relay:[example.com]" - and don't forget the above mentioned parts.
I recommend the usage of the brackets as well, because it will pretend loopbacks, if you have as well a local mail - server.


Please be sure, that you don't only configure the DNS - settings on your Plesk server, but as well on the nameserver from your provider ( the one, who provided you with the IP ! ) to get this work properly.


Your configuration should not only contain 127.0.0.1, bus as well your IPs ( for.example ):
HTML:
mynetworks = 127.0.0.0/8 [::1]/128 XXX.XXX.XXX.XXX/32 XXX.XXX.XXX.XXX/32
 
Hi

I wanted to thank you for your help and post my workaround since nothing worked for me (sorry to say but I gave up).

My workaround was to have the mail service disabled for that domain and create a new subscription for the same customer with mail service enabled, in my case I created "domain.mail" and told the customer to send from the email address I created there, [email protected].

Once again, thank you for all of your help UFHH01.
And I hope if someone finds this he/she will post his/her solution here.
 
Back
Top