Sendmail with multiple domains.....where do I start?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Sendmail with multiple domains.....where do I start?
Hello,
Over the last week or so I've been working on establishing a linux server to host our domains. I've learned a lot, and accomplished a lot, thanks to many of you (thanks for all the help).
Anyway, I've got everything working except for one issue. I need sendmail to send messages that are handed to it via php. I can't seem to get it to work.
We've got three domains. domain1 is our primary domain, and then thereis domain 2 and domain 3. All of these servers are behind NAT. The linux server does web & database. A seperate Win2000 box does POP and SMTP mail. Most of the recipients of the php (web page) are located on the Win2000 box.
I'm wondering if the linux box is confused, because the linux box is named "domain1.com" and the recipients are "user@domain1.com" but they're on the Win2000 box, not on the linux box. I receive no errors from the php side of things. I just never get the messages. I've done sendmail -q thinking it had queued things, but nothing happens. No errors, and no results!
I checked sendmail.cf and have no idea if or what I should do with that. I haven't worked with sendmail that much (everyone has to start somewhere -- why not here).
Anyway, if anyone has some suggestions or help, I'd very much appreciate it. Our server is **almost** ready for production.
I finally got it to work. I didn't have the sendmail package installed from the mandrake cd. I find that unusual, as before I installed the package, 'whereis sendmail' would return '/usr/sbin/sendmail' (if it isn't installed, why is this file there?) Stupid mistake, but then again I'm learning.
If I had a large use for mail, I would consider something else (perhaps qmail). But all I'm doing is sending an occasional email from a "contact info" web page. Its not receiving email, it's not being used as an email server. It's just shooting off a few emails here and there.
Thanks for the response. If I need qmail installed in the near future, I'll know who to ask for help!
I've been using sendmail because it's common (you can find it on more than two-thirds of all linux boxes). Also, php is already configured to use sendmail. It's just easier to do that than set up something else.
Your suggestion is definitely worth thinking about. Is it a program that comes with Mandrake 8.2? Or would you have to install it?
I *seriously* doubt that. Perhaps the "sendmail" binary, of which all the MTAs have... PHP just interfaces to that binary so nullmailer would be transparent to PHP.
It's to be installed; I don't think there's a package for it anywhere.
Sendmail is cryptic and flawed? Hmmmmm... I agree with you that it isn't on 2/3 of all Linux boxes, but for Enterprise level usage, it is #1 by FAR. Over 90% of all enterprise mail servers on the internet run sendmail on some form of UNIX platform, while the remaining percentage is pretty much MS Exchange. Sendmail is cryptic, I agree, but it is not exactly overly flawed. It is also the most configurable MTA there is. I do agree, though, that for most people setting up a small to medium network, sendmail is a bit much (Postfix is a good alternative, as is Exim). But for enterprise, trust me... There is nothing better.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.