Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-08-2002, 12:21 PM
|
#1
|
Member
Registered: Feb 2002
Posts: 322
Rep:
|
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.
Thanks ahead of time,
Jason
|
|
|
05-08-2002, 03:56 PM
|
#2
|
Member
Registered: Apr 2002
Distribution: Slackware
Posts: 114
Rep:
|
Reconsider
Take a few moments and really reconsider your use of sendmail in this day and age. Offhand, I cannot think of a more cryptic and flawed MTA on Unix.
My personal preference is qmail but others will point you to Courier or Exim, which are both excellent MTAs.
If you decide to use qmail I can show you exactly how you do it. I'm running several virtual mail/web servers with qmail.
|
|
|
05-08-2002, 06:12 PM
|
#3
|
Member
Registered: Feb 2002
Posts: 322
Original Poster
Rep:
|
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!
Jason
|
|
|
05-08-2002, 07:04 PM
|
#4
|
Member
Registered: Apr 2002
Distribution: Slackware
Posts: 114
Rep:
|
Umm why use sendmail again?
If all you're doing is sending mail out, try nullmailer instead. a zillion times smaller and you won't get rooted by the sendmail bug o the day.
|
|
|
05-08-2002, 10:43 PM
|
#5
|
Member
Registered: Feb 2002
Posts: 322
Original Poster
Rep:
|
Never heard of it before.
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?
|
|
|
05-08-2002, 10:59 PM
|
#6
|
Member
Registered: Apr 2002
Distribution: Slackware
Posts: 114
Rep:
|
Sendmail on 2/3 of linux machines?
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.
|
|
|
05-19-2003, 09:57 PM
|
#7
|
LQ Newbie
Registered: Apr 2003
Distribution: Red Hat 8.0
Posts: 2
Rep:
|
There is a nullmailer package. It's at untroubled.org
Actually, this leads to a problem I'm having. When I tried
installing the .rpm file for nullmailer, it said something about
needing supervise-scripts.
Does anyone know a way to install nullmailer without needing
supervise scripts?
|
|
|
05-20-2003, 08:48 AM
|
#8
|
Member
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520
Rep:
|
akohlsmith,
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.
Chris
|
|
|
All times are GMT -5. The time now is 05:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|