PDA

View Full Version : Sendmail Expert please help a Noob



shallowz
28th June 2007, 08:55 PM
ok i have a very simple understanding of Sendmail
it seems that a lot of software uses Sendmail to send emails for it
i am trying to set up a mediawiki wiki
for user to reset there password then need to receive an email
at first i was getting SELinux errors and i couldn't find any help with that so i disabled SELinux
no i no longer get any errors but the user isn't getting the email
i know nothing about Sendmail and still a noob with Linux.
how do i go about getting sendmail to send messages or etc...

shallowz
28th June 2007, 09:05 PM
i am looking over the "System log viewer" under "maillog"
the address of the user was a gmail account
according the log it says its being refused by google
what can i do to be able to allow this not to be refused?

shallowz
29th June 2007, 05:02 PM
any ideas?

danwaineo
29th June 2007, 05:15 PM
I think you need to setup a "smarthost". This means that you need to forward email to your internet provider. Google will probably accept email from them, but not from you.

Looks like there is a howto here:
http://www.go2linux.org/node/35

shallowz
29th June 2007, 08:47 PM
i did every step but that didnt help at all

but i noticed something
when looking over the maillog it seems to be sending out the email from
apache@domain.com (the domain part is my domain)

could this be the problem?

so the sending part is working but google or my guess who ever i send this to is going to reject it

pseudovector
29th June 2007, 09:03 PM
post the message from the log giving all the details, post any bounced mail including all headers. that would be more useful than your somewhat vague description.

if google really got the mail, then you have sendmail working in some fashion. if google bounced the mail, then my initial guess is the hostname of your computer maybe? if you don't send from a valid host/domain google may reject it. google may also DNS blacklist hosts, so you may need to do as suggested above and use a smarthost to send out your mail. (e.g. if you run sendmail from your personal computer on the comcast network, some places will reject mail originating from your host unless you use the comcast SMTP server, which is "trusted" better).

shallowz
29th June 2007, 09:15 PM
this is the message that comes up

Jun 29 16:07:36 “DomainName” sendmail[3930]: l5TK7aWq003930: from=apache, size=705, class=0, nrcpts=1, msgid=<200706292007.l5TK7aWq003930@”DomainName”.com>, relay=apache@localhost

Jun 29 16:07:36 “DomainName” sendmail[3931]: l5TK7arE003931: from=<apache@”DomainName”.com>, size=938, class=0, nrcpts=1, msgid=<200706292007.l5TK7aWq003930@”DomainName”.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]

Jun 29 16:07:36 “DomainName” sendmail[3930]: l5TK7aWq003930: to=Rzwicker <someoneat@gmail.com>, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30705, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l5TK7arE003931 Message accepted for delivery)

Jun 29 16:07:39 “DomainName” sendmail[3933]: l5TK7arE003931: to=<someoneat@gmail.com>, ctladdr=<apache@”DomainName”.com> (48/48), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120938, relay=gsmtp163.google.com. [64.233.163.27], dsn=4.0.0, stat=Deferred: Connection refused by gsmtp163.google.com.

pseudovector
29th June 2007, 09:16 PM
Now I see you said you're sending from domain.com. I'm going to say that's most likely the problem. You need the host/domain you're sending from to reflect where you're really sending it from. Google most likely does a reverse lookup on any mail it receives, meaning it'll check the ip address of the computer where the mail originated, and if it's host/domain don't match what the lookup tells it, Google will reject the mail. This is to help prevent spam.

shallowz
29th June 2007, 09:17 PM
is there someplace i can go to add my POP3 account so messages can be sent from that account?

shallowz
29th June 2007, 09:19 PM
i placed the "DomainName" to replace the actual domain name that it really says
it actually says the realdomainname.com example (google.com)

shallowz
9th July 2007, 05:56 PM
any more help on this
still cant find an answer
hoping some one can help me

shallowz
10th July 2007, 02:41 PM
any ideas
this was built with standard Fedora settings
nothing has been changed how do i set it up so i can send email out

SaGS
10th July 2007, 04:42 PM
In addition to the AuthInfo stuff, I had to force the envelope sender for sendmail (I think it's the -f option, don't remember right now, see man page), else my ISP's SMTP server was ignoring the e-mails. I haven't sorted this out completely. Some thing with trusted users might still be needed, otherwise do sendmail only as root.

mnisay
10th July 2007, 05:26 PM
first things first.

is there any firewall before your box?

did sendmail bind itself to all IP address of your box?

what does

# ss -a | grep smtp | grep LISTEN

says to you?

EDITED:

pseudovector 's hints could be right . perhaps you might want to check your forward/reverse DNS settings for MX email server

w5set
11th July 2007, 10:05 PM
post output of
hostname
i.e. type in hostname in a terminal.