View previous topic :: View next topic |
Author |
Message |
Havin_it Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 17 Jul 2005 Posts: 1272 Location: Edinburgh, UK
|
Posted: Tue Dec 20, 2005 3:12 pm Post subject: How to enable system email alerts? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
juliuspc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_sideshow_bob.gif)
Joined: 06 May 2005 Posts: 14 Location: Canada
|
Posted: Tue Dec 20, 2005 6:34 pm Post subject: sending email |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Havin_it Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 17 Jul 2005 Posts: 1272 Location: Edinburgh, UK
|
Posted: Tue Dec 20, 2005 10:21 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
randoguy Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Bugs.gif)
Joined: 10 Sep 2003 Posts: 77 Location: New Zealand
|
Posted: Wed Dec 21, 2005 1:31 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|