Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to enable system email alerts?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1272
Location: Edinburgh, UK

PostPosted: Tue Dec 20, 2005 3:12 pm    Post subject: How to enable system email alerts? Reply with quote

Hi,

I'm setting up a server on my network, and I'm coming across lots of programs that refer to sending alerts to a specified address by email. When I ran Apache on my old Windows PC, IIRC, PHP had its own section in php.ini where the account settings for my ISP could be added so PHP web pages could send mail. There was a Linux section where the path to Sendmail would be added - I don't remember if there was a Windows equivalent to this directive.

My question is: Is there a system-wide configuration for sending mail from any process? That seems like the case, as Apache for instance has a conf item for an admin email address, but says nothing about configuring the account for sending the mail.

I've seen Qmail referred to as a secure replacement for Sendmail - what's the validity of that statement? Does it do the kind of job I'm speculating on here? As you can probably guess, my major problem is I have very poor knowledge of how email infrastructure works, which is making it difficult to make sense of the docs I can find.

Any low-brow, hand-holding guidance gratefully appreciated!
Back to top
View user's profile Send private message
juliuspc
n00b
n00b


Joined: 06 May 2005
Posts: 14
Location: Canada

PostPosted: Tue Dec 20, 2005 6:34 pm    Post subject: sending email Reply with quote

When you had servers running on your Windows box, you had to input ISP settings to send email. Apache would use those settings to log in to your ISP's sending-email server, and ask that server to send your mail.

With Linux, a myriad of programs exist to send mail from your computer -- you no longer need your ISP's sending-email server.

The trouble is, most of those programs are full-fledged mail servers (like the kind your ISP is running!), and by the sounds of things you don't need that.

So you do need to install some kind of program that provides /usr/sbin/sendmail (check your box to see if there already is one there) but you certainly don't need Sendmail or Qmail just to send mail. Have a look at net-mail/ssmtp.
_________________
--
Julius

living under a rock
JuliusPC consulting
discover fantastic shops
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1272
Location: Edinburgh, UK

PostPosted: Tue Dec 20, 2005 10:21 pm    Post subject: Reply with quote

So... let's see if I have this straight (again, sorry for limited comprehension)

When I send an email to a given address (say me@maildomain.dom) it goes directly to the server at maildomain.dom without needing to be sent from a particular account (i.e. my ISP mailserver). I think I can get my head around that, but:

How is the message sender identified on arrival? Can I make up anything I like?
Is it possible this type of message might be seen as spam and dropped by routers en route, or by the receiving server?
Are all messages sent from /usr/bin/sendmail sent with the same ID?
My connection has a dynamic IP (though I use a DynDNS hostname) - is this a problem?
Back to top
View user's profile Send private message
randoguy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2003
Posts: 77
Location: New Zealand

PostPosted: Wed Dec 21, 2005 1:31 am    Post subject: Reply with quote

Havin_it wrote:
So... let's see if I have this straight (again, sorry for limited comprehension)

When I send an email to a given address (say me@maildomain.dom) it goes directly to the server at maildomain.dom without needing to be sent from a particular account (i.e. my ISP mailserver). I think I can get my head around that, but:

How is the message sender identified on arrival? Can I make up anything I like?
Is it possible this type of message might be seen as spam and dropped by routers en route, or by the receiving server?
Are all messages sent from /usr/bin/sendmail sent with the same ID?
My connection has a dynamic IP (though I use a DynDNS hostname) - is this a problem?


It is not identified on arrival. As part of every emails header the program which creates the email puts an email address in the from field. Technically that could be any email address that you like.

Yes it is possible that the recieveing server will do reverse dns checking and drop your mail. I.E. if an email comes in from someone@yourdomain.com with an ip of 12.34.56.78 it will look up yourdomain.com and if it ip address is not 12.34.56.78 it would drop the mail. However i am unsure how widespread this is. With some of our servers we route all mail through the mail server so that it appears to be comming from the right place however i dont think that you can do this with ISPs.

No, the particular application can choose who the mail is sent from as i explained above.

If you are uneffected by what i said above about reverse dns checking the fact that you have a dynamic ip should make little difference.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum