I would like to configure Smtp for my mail server to send out mail to external server. I followed this link and confused of what exactly the relay mail should be, zmprov ms server.domain.com zimbraMtaRelayHost mailrelay.example.com
I did not know what should be use to replay for mailrelay.example.com
. If my mail domain is mail.domain.com
so can I set up for relay host as wiki.domain.com
?
Asked
Active
Viewed 5,827 times
0

DinhNgocHien
- 707
- 3
- 17
- 34
1 Answers
1
The correct use would be:
zmprov ms <your zimbra server> zimbraMtaRelayHost <the relay-host you're sending mail through>
So, if you have installed Zimbra on mail.domain.com and would like to send all mails through wiki.domain.com, you would use
zmprov ms mail.domain.com zimbraMtaRelayHost wiki.domain.com

Dennis Plöger
- 168
- 3
-
I set my relay host followed your suggestion, unfortunately, I cannot send out mail to external server, only the mail those are in the local can receive mail. – DinhNgocHien Dec 08 '14 at 07:14
-
Did you correctly configure the relay server to accept relaying mails from your zimbra server? You can have a look into its mail log and in Zimbra's /var/log/zimbra.log for error details. – Dennis Plöger Dec 08 '14 at 07:49
-
The log show: `relay=none, delay=0, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for domain loops back to myself)` – DinhNgocHien Dec 08 '14 at 08:47
-
1Your relay server thinks, that it should host mail for the domain you're using. You have to remove the domain from the local domains-setting (or whatever it is called in your mail server) – Dennis Plöger Dec 08 '14 at 10:27
-
I set gmail as a relay host and it worked well, so according to you idea I cannot use the local domain as a relay host? – DinhNgocHien Dec 08 '14 at 10:42
-
No, you have to tell your relay server, to NOT handle mail for your domain and rather only relay it. – Dennis Plöger Dec 08 '14 at 10:43
-
Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/66392/discussion-between-dinhngochien-and-dennis-ploger). – DinhNgocHien Dec 08 '14 at 10:57