LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-08-2002, 11:21 AM   #1
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
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
 
Old 05-08-2002, 02:56 PM   #2
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
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.
 
Old 05-08-2002, 05:12 PM   #3
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
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
 
Old 05-08-2002, 06:04 PM   #4
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
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.
 
Old 05-08-2002, 09:43 PM   #5
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
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?
 
Old 05-08-2002, 09:59 PM   #6
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
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.
 
Old 05-19-2003, 08:57 PM   #7
joegeek
LQ Newbie
 
Registered: Apr 2003
Distribution: Red Hat 8.0
Posts: 2

Rep: Reputation: 0
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?
 
Old 05-20-2003, 07:48 AM   #8
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
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
 
  


Reply


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
Multiple domains? WorldBuilder Linux - Networking 2 05-13-2005 08:51 PM
Sendmail x-envelope with multiple domains Rotwang Linux - Software 0 09-13-2004 09:46 PM
multiple domains, one sendmail sqn Linux - Networking 0 12-23-2003 04:46 PM
Multiple Domains? cic Linux - Networking 2 01-23-2002 06:38 AM
Multiple Domains??? cic Linux - Networking 1 10-08-2001 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration