provide username and password with sendmail
Hi,
I am writing a shell script to send mail notifications. But while trying to send a mail from my system, (using sendmail) it says: "Client does not have permission to submit mail to this server" I think i need to provide username/password with /usr/lib/sendmail. But I could not find the options in man pages. Can anyone help me with the syntax please? Thanx, Rooky. |
Quote:
look for lines such as these in the sendmail.mc Code:
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl see here:- https://helpdesk.ndchost.com/index.p...kbarticleid=49 a true test to see why you cannot send email is to telnet to the mail server on port 25 and identify yourself if it gets that far. from the return codes you will be able to see why you cannot send email. |
Quote:
my /etc/mail consists of: sendmail.hf, sendmail.cf, submit.cf Here is the error snapshot: reciever@somewhere.com... Connecting to [mail.server.ip.addr] via relay... 220 mail.server.somewhere.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Tue, 15 Dec 2009 16:39:56 +0530 >>> EHLO somewhere.com 250-mail.server.somewhere.com Hello [mail.server.ip.addr] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-EXPS GSSAPI NTLM LOGIN 250-X-EXPS=LOGIN 250-AUTH GSSAPI NTLM LOGIN 250-AUTH=LOGIN 250-X-LINK2STATE 250-XEXCH50 250 OK >>> MAIL From:<sender@somewhere.com> SIZE=156 454 5.7.3 Client does not have permission to submit mail to this server. reciever@somewhere.com... Deferred: 454 5.7.3 Client does not have permission to submit mail to this server. Closing connection to [mail.server.ip.addr] >>> QUIT |
Quote:
from the error, it looks you are simply not allowed to relay mail via this server.could be one of many reasons..blacklisted...no proper rDNS...need to authenticate first.. something you would have to check with the server administrator |
Quote:
|
i dont know...but i know you can do the way i sent you in that link...
|
Okay, what do u suggest about the missing sendmail.mc file??
Do i need to create one? |
Quote:
not sure if it is missing - did you search?? was redhat an rpm install?? if so rpm -qc sendmail or rpm -ql sendmail or locate sendmail.mc anyway, you dont need to touch this file for what you want to do as far as i know. i think you just have to find another way of sending the mail so that it can do an smtp auth when connecting to remote smtp server. tbh - you shouldnt have to authenticate if you are relaying mail. does this server point to mx records? |
All times are GMT -5. The time now is 06:24 PM. |