Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been having trouble with the mail function in php. I call the function correctly and it returns a 1 like it has ran sucessfully, but no email shows up in my inbox. I tried it with a simple perl script too. I am completely send mail retarded and haven't changed anything in it. Its the default install that comes with Fedora 9 on x86-64.
Here is an example of my a sendmail log for it attempting to send an email to a test account.
Certainly looks like it's gone (I assume you are sending to your yahoo account).
Why don't you try sending to a local user. There's a pretty good chance that yahoo is treating it like spam if you don't have reverse DNS set properly or if your IP is blacklisted for some reason.
If that is the case then you can relay through your ISP using "smarthost"
Certainly looks like it's gone (I assume you are sending to your yahoo account).
Why don't you try sending to a local user. There's a pretty good chance that yahoo is treating it like spam if you don't have reverse DNS set properly or if your IP is blacklisted for some reason.
If that is the case then you can relay through your ISP using "smarthost"
I have the yahoo spam filter turned off. I also have a few gmail accounts I've tried sending it to just incase. I posted the logs because that account already gets spammed to high heaven anyways.
Quote:
Originally Posted by Mr. C.
There is nothing in the log that indicates the relay was a yahoo machine. Looks like the relay was localhost.
How would I go about making the relay not be localhost? Or do I want it to be? Like I said I'm MTA retarded. I also just made a half-assed attempt at trying to use postfix instead, but so far I'm not having much luck with that either.
Here is a little more about the machine I'm running this one, just in case any of this might help. Its a simple dev server I have. I (poorly) hand configured apache 2.2.8, PHP 5.2.5, and mysql 5.0.45. When setting it I never touched sendmail at all, but it was installed when I compiled PHP.
Thanks for the quick replies.
edit: and sorry the code I posted earlier broke the layout. If a mod wants me to edit that in anyway, I can.
I generally don't debug Sendmail setups anymore. I stopped using Sendmail years ago.
Before you set yourself in stone, its important that you learn if:
a) your IP address will be able to send mail, and
b) other remote sites are willing to receive email from your server
If you are on a residential block, or a dynamic block, many sites will reject your mail.
In such a case, you will need to setup your mail as a smarthost, which relays through your
ISP.
It appears that you don't have an official domain name, so you'll need to perform address
rewriting on the envelope sender, so that mail can bounce back in case it is not deliverable,
and so that other sites don't reject the mail (because the latter is not possible). You can
do this with the 5th parameter (additional sendmail options) to mail(). You'd set something
like "-f you@realdomain.com", or have your MTA do this on all outbound mail.
before that line was in there but instead of smtp-server.nc.rr.com there was mysmtprelay or some junk like that. I dont remeber what it was, but it was junk. Should I remove the dnl on either end? What do those do?
I just switched over to postfix using system-switch-mail and then saw a little notification pop up saying that I had new mail in my yahoo account. For some reason it won't goto my gmail acount, probably getting delete as spam, but who cares. Thank you very very much. As promised, Mr C, you are now my bffe.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.