force Webmail user to send email with "smtp auth"
We have a custom smtp server that checks several limits
before allowing a user to send an email, this checks is done
based on the user that authenticated on the smtp "smtp-auth"
I would like to force all email sent from the Webmail to go through
this smtp, I found the "MTA webmail" in the server configuration page
with that I can redirect the webmail users to my smtp server, but the
webmail DO NOT authenticate the user.
Any idea on how to do that or implement this?
I looked at the
maybe I could change the Transport.send(mm) to do an authenticated send
but I am still missing the user password to authenticate
Thanks for any help
My problem is exactly the same problem.
Due to heavy loads of spams caused by the external hosts + internal hosts (due to some trojans or viruses) on my network I rejected everything other than the sasl authenticated users (only if they send email from their logged in username) in the smtpd_sender_restrictions, smtpd_client_restrictions, smtpd_recipient_restrictions.
This move could finish spams. But now the problem comes like, since (till rejecting I didn't know about this) zimbra Webmail does not use user/pass while sending e-mails, my postfix doesn't accept the e-mails from the Webmail either.
Is there a way to enable zimbra's Webmail to use username/password while sending the e-mail? That's bonadio's original question I believe.
[zimbra@chronos conf]$ zmcontrol -v
Release 5.0.2_GA_1975.RHEL4_20080130212006 CentOS4 FOSS edition
And when I do the above operation
And I get the following server log due to above operation:
Code:mail.SEND_ABORTED_ADDRESS_FAILURE Arg:(invalid, STR, "firstname.lastname@example.org")
Feb 19 17:43:07 chronos postfix/smtpd: NOQUEUE: reject: RCPT from chronos.mycompany.local[10.1.1.17]: 553 5.7.1 <email@example.com>: Sender address rejected: not logged in; from=<firstname.lastname@example.org> to=<email@example.com> proto=ESMTP helo=<chronos.mycompany.local>