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')dnlI also instructed it to masquerade as my web site and aliased mail user "wordpress" to "webmaster", because I was receiving <wordpress@plumbbobblog.com>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 -----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. |
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 |
Quote:
Quote:
Thanks. |
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 |
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')dnlHere's what I did to apply it: make -C /etc/mailThe 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. |
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. |
{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. |
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.
|
All times are GMT -5. The time now is 06:54 AM. |