LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-20-2008, 07:05 PM   #1
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Rep: Reputation: 15
Need sendmail setup assistance for wordpress


Hi, all,

I had Fedora Core 7 and Wordpress to run my blog site, and things were working pretty well. Included in my features was that I allowed users to post if they registered with a nickname and email address, and wordpress would automatically send them a password.

Then my server crashed. I had to reinstall Fedora and restore mysql and Wordpress from a backup. Then I updated Wordpress to the latest version, and updated Fedora to Core 8.

Now the outgoing email function is broken.

I updated sendmail.mc to recognize my ISP's outgoing mail host as the relay for outgoing mail.
dnl define(`SMART_HOST', `smtp.comcast.net')dnl
I also instructed it to masquerade as my web site and aliased mail user "wordpress" to "webmaster", because I was receiving
<wordpress@plumbbobblog.com>
(reason: 550 User unknown)
Now I'm getting server messages from the ISP saying the outgoing mail request has been blocked, as follows:
----- The following addresses had permanent fatal errors -----
<shellydk@comcast.net>
(reason: 554 IMTA04.emeryville.ca.mail.comcast.net comcast 24.60.244.19 Comc
ast BL001 Blocked. Please see http://www.comcast.net/help/faq/index.jsp?faq=Secu
rityMail_Policy18625)

----- Transcript of session follows -----
... while talking to mx1.comcast.net.:
<<< 554 IMTA23.westchester.pa.mail.comcast.net comcast 24.60.244.19 Comcast BL00
1 Blocked. Please see http://www.comcast.net/help/faq/inde...q=SecurityMail
_Policy18625
... while talking to mx2.comcast.net.:
<<< 554 IMTA04.emeryville.ca.mail.comcast.net comcast 24.60.244.19 Comcast BL001
Blocked. Please see http://www.comcast.net/help/faq/inde...=SecurityMail_
Policy18625
554 5.0.0 Service unavailable
It looks like apache is the one setting up the email header.

Any suggestions?

Thanks in advance.

Phil W.

Oh, PS: When I follow the link in the server error message, I get "content not found." Sweet.

Last edited by philwynk; 01-20-2008 at 07:06 PM.
 
Old 01-21-2008, 12:55 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
After you updated sendmail.mc did you regenerate your sendmail.cf file? The link in your error messages says this:
Code:
You have been blocked from emailing the Comcast network because we have determined that you are sending email from a dynamic/residential IP address within the Comcast domain.  Comcast does not allow subscribers to send email from a mail server other than smtp.comcast.net
It seems that you're not using a smarthost.
 
Old 01-21-2008, 04:18 PM   #3
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
After you updated sendmail.mc did you regenerate your sendmail.cf file?
Yep.

Quote:
It seems that you're not using a smarthost.
Duh... what's a smarthost?

Thanks.
 
Old 01-21-2008, 06:55 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
A smarthost is the relay for your mail and it's where sendmail should send your mail through if the setting from your sendmail.mc file was applied to sendmail.cf. If you run the following command, do you get the output I've shown?
Code:
$ grep '^DS' /etc/mail/sendmail.cf
DSsmtp.comcast.net
If not, then the change in sendmail.mc did not get correctly applied to your sendmail.cf (I'm assuming the location is /etc/mail/sendmail.cf). If so, then maybe Wordpress is doing its own SMTP stuff and I'd recommend checking the docs to see how to get it to use your sendmail. If it was working correctly prior to the crash do you have a backup of your previous config?

Last edited by gilead; 01-21-2008 at 06:58 PM.
 
Old 01-22-2008, 08:24 AM   #5
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Original Poster
Rep: Reputation: 15
My change in sendmail.mc didn't get applied to sendmail.cf.

Here's the line I modified in /etc/mail/sendmail.mc:
dnl define(`SMART_HOST', `smtp.comcast.net')dnl
Here's what I did to apply it:
make -C /etc/mail
The make command DID generate a sendmail.cf in the correct directory; I can tell by the timestamp. However, the generated sendmail.cf contains the DS designator followed by nothing.

I suppose I can simply modify sendmail.cf directly, then stop and restart sendmail. But that kinda breaks the mechanism and leaves me to modify my own sendmail.cf forever (which is ok, if that's what it takes.) Any idea why my sendmail.mc change isn't being applied?

Thanks for your help.

Phil W.
 
Old 01-22-2008, 08:57 AM   #6
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Original Poster
Rep: Reputation: 15
Ok, I modified sendmail.cf directly to list the relay host after DS, and restarted sendmail. Everything seems to be working now. The only remaining question is, why didn't my change to sendmail.mc generate the correct sendmail.cf?

No urgency here, but I would like to know.

Sendmail.cf is one of those legacy UNIX things that I just never learned, 'cause I never had to, but it doesn't seem all that difficult. If I have to write my own sendmail.cf, I have to, and that's that.

Thanks again for your assistance.

Phil W.
 
Old 01-22-2008, 09:12 AM   #7
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Original Poster
Rep: Reputation: 15
{Sigh} Ok, never mind. I got it.

Reading the sendmail.cf file, I located the directory /usr/share/sendmail-cf from which the make pulls its stuff, and I read the README file there. It instructed me that the "dnl" I was seeing all over the sendmail.mc file means "delete through new line," and that what I modified in my sendmail.mc file was a COMMENT.

Crap.

Well, I've been in IT in one form or another since 1979, and I've never seen "dnl" as a comment indicator before, so I guess I'm not COMPLETELY stupid...

I got rid of the "dnl"s from the sendmail.mc line I modified, and ran make, and got the correct sendmail.cf.

Pretty damn funny, actually.

Thanks again for your help.

Phil W.
 
Old 01-22-2008, 01:07 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Sorry it took so long to get back - and congratulations on figuring it out. dnl is definitely the most obscure mechanism I've come across. Building a new Sendmail is the only time I ever use m4 so I wouldn't have seen it at all except for that.
 
  


Reply

Tags
apache, sendmail, wordpress


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need assistance with wireless network setup... thekid Linux - Wireless Networking 2 12-10-2007 04:22 PM
sendmail setup shadowc Linux - Newbie 4 10-03-2007 03:51 PM
Basic Linux Laptop setup - any assistance welcome! mofoitk Linux - Laptop and Netbook 13 10-27-2005 12:56 AM
Seeking assistance with *Sendmail* config... verbal Linux - Software 3 05-17-2003 11:27 AM
sendmail setup Finlay Linux - Networking 16 03-18-2003 02:00 PM


All times are GMT -5. The time now is 03:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration