Zimbra relaying

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Blisk
Posts: 44
Joined: Tue May 21, 2019 7:47 am

Zimbra relaying

Post by Blisk »

How to setup zimbra so I can send email from everywhere but it must have smtp authentication to preven spammers to send spam throu it.
I checked this article but in this setup I need to add domains from which it will be relayed and I can not do that because ti should be from everywhere.

https://wiki.zimbra.com/wiki/Sending_ma ... rnal_relay

is it possible to setup Zimbra so I can send emails with SMTP authentication from everywhere?
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra relaying

Post by phoenix »

If you're talking about your users sending mail then they should send it via the correct Submission port which is 587 not port 25.

BTW, by default ZCS is not an open relay for spammers.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Blisk
Posts: 44
Joined: Tue May 21, 2019 7:47 am

Re: Zimbra relaying

Post by Blisk »

I have setup port 587 in my outlook and I can not send email.
And I am not on local network but on some other location.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra relaying

Post by phoenix »

Blisk wrote:I have setup port 587 in my outlook and I can not send email.
And I am not on local network but on some other location.
That doesn'teally tell us much, does it. You need to provide a better description about why it doesn't work and wat errors you see in the log files.

FWIW, there should be no problem sending mail vai ZCS no matter where in the world your mail client is located and nobody else (including me) has any problem doing that. ;)
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Blisk
Posts: 44
Joined: Tue May 21, 2019 7:47 am

Re: Zimbra relaying

Post by Blisk »

I have setup for IMAP port 933
and for SMTP port 587
And for both autodetect.
I checked mailbox.log and nothing there

In outlook I get error
login into IMAP security connection refused

Outlook can not connect outgoing email SMTP...
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra relaying

Post by phoenix »

Blisk wrote:In outlook I get error
login into IMAP security connection refused
That's not a problem with Zimbra, you most likely have a configuration problem. Check you DNS records, hosts & resolv file to make sure theyre correct etc., etc......
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Blisk
Posts: 44
Joined: Tue May 21, 2019 7:47 am

Re: Zimbra relaying

Post by Blisk »

this is hosts file
127.0.0.1 localhost.localdomain localhost
192.168.100.200 mydomain.com mail.mydomain.com


this is resolv.conf file
search mydomain.com
nameserver 127.0.0.1
nameserver 192.168.100.200
nameserver 217.72.64.222

My computer/outlook is not in local network but outside of it.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra relaying

Post by phoenix »

Blisk wrote:this is hosts file
127.0.0.1 localhost.localdomain localhost
192.168.100.200 mydomain.com mail.mydomain.com

this is resolv.conf file
search mydomain.com
nameserver 127.0.0.1
nameserver 192.168.100.200
nameserver 217.72.64.222

My computer/outlook is not in local network but outside of it.
I've told you this several times and even given the correct format in an earlier post but here we go again: your hosts file format for the LAN IP entry is incorrect, read my earlier post with the example in it and change it in your current file.

In addition (I've also mentioned this) as you're behind a NAT router your resolv file should ony have the LAN DNS server in it and not an external DNS server - this is most likely the cause of your problem(s).
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Blisk
Posts: 44
Joined: Tue May 21, 2019 7:47 am

Re: Zimbra relaying

Post by Blisk »

I have exactly the same as it is here for hosts
https://wiki.zimbra.com/wiki/Split_DNS
127.0.0.1 localhost.localdomain localhost
192.168.0.200 zimbra.test.com zimbra

and I changed it as you said
192.168.0.200 mail.mydomain.com mail

and here is resolve.conf
search mydomain.com
nameserver 127.0.0.1



I also did this many times what you said I should have but didn't work. And this is not how it is described in wiki.
2019-06-27 13_31_15-(2) Zimbra installation Ldap failure - Zimbra Forums.png
2019-06-27 13_31_15-(2) Zimbra installation Ldap failure - Zimbra Forums.png (13.95 KiB) Viewed 2075 times

I really don't know what you want me to change, I looks like I should ask on some other forum.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra relaying

Post by phoenix »

Blisk wrote:I really don't know what you want me to change, I looks like I should ask on some other forum.
How about an explanation as to why you posted completely different details in your post to which I replied?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Post Reply