Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-2011, 09:31 PM
New Member
 
Posts: 3
Exclamation [SOLVED] How force user auth to sending mail

I have checked several thread with issues similar to the following, but i donīt find a clear answer.

My server has auth TLS enable but also permit to send mail to my domain users without any auth. That condition could permit to any user from my domain send mail supplanting any another user of my domain (eg. using SMTP commands).

That is, for example, userA send a mail to userB as come from userC.
To avoid this situation i want to force auth before a user send mail.

It is possible??

(I know about a pop before smtp, but i donīt want install a additional tool to do that)
Reply With Quote
  #2 (permalink)  
Old 05-08-2011, 02:04 PM
Advanced Member
 
Posts: 222
Default

If I understand corectly, you might have been confused about mail relay and mail receiving. If you have TLS auth enabled, then also authentication must be forced, so noone can send (relay) mail using your server without authenticating first.
Then, regarding user1 send mail on behalf of user2, I don't think it would work if authentication is enebled. Except in situation if user1 has an ALIAS named user2.
But it might be that I am also wrong - haven't test it.
Reply With Quote
  #3 (permalink)  
Old 05-09-2011, 12:17 AM
Intermediate Member
 
Posts: 18
Default

Hi,
yes, it is indeed possible that ANYONE can hand an e-mail message over to your server if it is addressed to one of your users and can fill in the "From" field with anything including other of your e-mail addresses. The sender field of an e-mail should by no means be trusted. If your users require some certainty as to who the mail is really from, they should use S/MIME or other cryptograhpical solution. Support for S/MIME in Zimbra is on the way (for some time now), you can see progress and vote for it here:

https://bugzilla.zimbra.com/show_bug.cgi?id=9046

Best regards.

Edit: And this is not a problem of Zimbra but e-mail in general.
Reply With Quote
  #4 (permalink)  
Old 05-30-2011, 08:57 AM
New Member
 
Posts: 3
Default

Thanks for reply.
I found a solution for my issue.

I checked my main.cf and under smtpd_recipient_restrictions was the parameters "permit_mynetwork", "permit_sasl_authenticated" and others checks and rejects. In fact in my server users could send mail with (permited by "permit_sasl_authenticated") and without (permited by "permit_mynetwork") SMTP authentication. I removed the users's network from mynetwork and added the parameter "reject" at the end of smtpd_recipient_restrictions.

Now the users must enable SMTP authentication in their mail clients (outlook, thunderbird, etc.) in order to they can send mail. If users donīt use SMTP authentication (or try to send mail using directly SMTP commands) the server reject the message with error "Recipient address rejected: Access denied".

Maybe it is not the most elegant solution but it works. I think smtpd_client_restrictions may be used to do that in a better manner.

Last edited by mablux; 07-05-2011 at 06:34 AM..
Reply With Quote
  #5 (permalink)  
Old 06-07-2011, 01:25 AM
Elite Member
 
Posts: 338
Default

It's a good idea. But did you check if outgoing and ingoing mails are good.
Reply With Quote
  #6 (permalink)  
Old 06-09-2011, 03:53 AM
Elite Member
 
Posts: 338
Default

I can't add the "reject" parameter to the smptd_recipient_restrictions, zimbra always resets that value.
Reply With Quote
  #7 (permalink)  
Old 07-04-2011, 05:08 AM
New Member
 
Posts: 3
Default

dalmate:

The ingoing and outgoing mails are good, already tested.

You must add "reject" (or change the last "permit" to "reject") in /opt/zimbra/conf/postfix_recipient_restrictions.cf

good luck!!
Reply With Quote
  #8 (permalink)  
Old 05-08-2012, 12:26 AM
Member
 
Posts: 14
Default

Hello Mablux,
In this situations I have a problem to send mail via webmail. Do you have solution for this?

Best Regards
Reply With Quote
  #9 (permalink)  
Old 05-08-2012, 12:33 AM
Member
 
Posts: 14
Default

My question is how to make mail server as open relay (zmprov modifyServer mail.example.com zimbraMtaMyNetworks '0.0.0.0/0' ) and force everybody to use smtp authentification and also use webmail?

Best Regards
Reply With Quote
  #10 (permalink)  
Old 05-08-2012, 12:41 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by shoneo View Post
In this situations I have a problem to send mail via webmail. Do you have solution for this?
What exactly is the problem and what errors do you see in the log files?

Quote:
Originally Posted by shoneo View Post
My question is how to make mail server as open relay (zmprov modifyServer mail.example.com zimbraMtaMyNetworks '0.0.0.0/0' ) and force everybody to use smtp authentification and also use webmail?
You do not, under and circumstances, want to make your server an open relay. If you want your suers to authenticate then they should use port 587 as the submission port.

What are you trying to achieve by making these changes?
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.