Sendmail and SMTP AUTH
Hello
I have configured SMTP AUTH for my sendmail using sasldb.When I try to send mail through user@localhost to any outer address it allows me to relay and does not asks for authenticity.May be i am not understanding its working.When it asks for authenticity?, i think when i try to sendmail it should not allow that. My settings are like this: In Sendmail.cf, i have made the following settings: Quote:
I have also tested AUTH LOGIN and AUTH PLAIN, they authenticate the user. |
Hey There,
Check out the section of the sendmail.conf that deals with relays (it should name a file outside the sendmail.conf, but in the same director - like /etc/mail/relays or something). If the loopback and/or hostname are in there, it may not be doing the checking because this tells sendmail that the host is exempt from checking. If you need to rebuild your /etc/mail/relays (or whatever it's called), just remake the hash map: makemap hash /etc/mail/relays /etc/mail/relays (double on purpose) This will recreate /etc/mail/relays.db (assuming relays is the name of the file) Hope this was of some help. If not, can you post your sendmail.cf up to the point where the mail processing rules begin? Best wishes, Mike |
Thank you for the reply.For relay i want the authentication to be carried out through SMTP AUTH only.Here is my sendmail.cf, please tell me where i went wrong and what should i do to make it work as required:
Quote:
|
Hey there,
In your sendmail.cf, change this line: Quote:
Quote:
Let me know if that doesn't help! Best wishes, Mike |
Sorry, for the late reply.It worked, thanks a lot :).When i try to sendmail through these accounts using Evolution and Squirrelmail, i get error.Do you have any idea, how can i make it work with them?
|
Hey There,
Sure. What error do you get? If you can post the full headers, that would be great (strip out anything that's personal) , Mike |
Hello
The error i get when i try to send mail through Evolution is: Quote:
Quote:
In case of Squirrelmail, i get this error: Quote:
|
Hey There,
I'm not 100% certain, since I don't use those email clients, but, since you've set up SMTP auth, you're going to need to set up your outbound mail to authenticate against your mail server every time you send an email (outbound via smtp). Let me know if you have trouble finding the specific settings, but the issue you're having is because of the authentication that you wanted to set up. Your mail server is now demanding that you authenticate before it will send out mail. Best wishes, Mike |
Hello
I have managed to make it work with Evolution and Squirrelmail.Thanks a lot for for all your help and support. Do you have any idea if i want to add password along with the user, using saslpasswd2 command, how can i do that?.I have tried the following: saslpasswd2 -c username saslpasswd2 -c username password saslpasswd2 -c username -p password None of them worked. |
Hey There,
I think you can do it one of two ways (maybe both :) Quote:
Quote:
, Mike |
Hello,
Both worked.Thank you :). Can we give encrypted passwords for sasldb? |
Cool :)
As for encryption, I'm not sure. The saslpasswd2 command should encrypt your password, but the security of your authorization (login password) is dependant on whether encryption is enabled on your mail server. If you use sendmail /usr/sbin/sendmail -v me@me.com or /usr/lib/sendmail -v me@me.com Your mailserver should dump out some variables for you. If there's no TLS, there's probably no encryption support. If you could run either of those command above and post the output, that would be great :) Thanks, Mike |
Hello
Can i create sasldb2 file and add entries to it without using saslpasswd2 command? |
Hey There,
I wish I had access to a saslpasswd2 file so I could give you a definitive answer. I know you can do so with, for instance, htpasswd. If you could post a user's entry from that file (create someone bogus and delete them after), I'm sure it could be edited with vi, or any text editor. The key would be just to encrypt the password that you're going to put in the file the way that sasl will expect it. I'm sorry I couldn't be more help on this one! Best wishes (I'll keep on this thread so I'll get notified if you post back :) , Mike |
Thank you so much for all the help and support.
|
All times are GMT -5. The time now is 01:38 AM. |