Jump to content

SMTP Authenticate before send


Recommended Posts

I grabbed 32 :D

 

No probs, I can make a 64 bit in vmware and see how it pans out. I'd rather make it the same as you have so at least I know that we have the same environment. Will start again :)

Link to comment
Share on other sites

Not sure if auth is working or not, now i'm getting relaying denied when i try to send (to anyone but *@tymnia.net).

 

I'm seeing this in auth.log:

Apr 21 12:24:45 tymnia postfix/smtpd[29051]: sql auxprop plugin using mysql engine

Apr 21 12:24:45 tymnia postfix/smtpd[29051]: auxpropfunc error invalid parameter supplied

Apr 21 12:24:45 tymnia postfix/smtpd[29051]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb

Not sure if it's a problem (shouldn't be using ldapdb, should it?)

 

mail.log says:

Apr 21 12:24:45 tymnia postfix/smtpd[29051]: connect from ptr-XXX-XXX-XXX-XXX.wescom.org[XXX.XXX.XXX.XXX]

Apr 21 12:24:46 tymnia postfix/smtpd[29051]: NOQUEUE: reject: RCPT from ptr-XXX-XXX-XXX-XXX.wescom.org[XXX.XXX.XXX.XXX]: 554 5.7.1 <tyme81@gmail.com>: Relay access denied; from=<mark@tymnia.net> to=<tyme81@gmail.com> proto=ESMTP helo=<[XXX.XXX.XXX.XXX]>

Apr 21 12:24:48 tymnia postfix/smtpd[29051]: disconnect from ptr-XXX-XXX-XXX-XXX.wescom.orgXXX.XXX.XXX.XXX]

(X's replace IP's)

Edited by tyme
Link to comment
Share on other sites

#START=yes
#MECHANISMS="pam"
#SASLAUTHD_OPTS="${SASLAUTH_MECH} -a rimap -r"
#SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -O localhost"
SASLAUTHD_OPTS="-m /var/run/saslauthd -r -a pam"

As you can see I've tried a few different things here.

Link to comment
Share on other sites

I messed with a lot of different config options, but everything is working now. Two notes that may be important:

with authenticating over SMTP (via saslauthd) it contacts the IMAP server. I only had IMAP-SSL enabled, by default saslauth wants regular IMAP (on port 143). Specifying the SSL port didn't resolve the problem: I assume there's a config option somewhere to make saslauth use SSL, but I didn't bother doing the research and instead just started up regular imap and things seem to be working find and dandy now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...