Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

debian mail setup?

Status
Not open for further replies.

sillyVM

Technical User
Feb 14, 2007
144
US
How do I setup mail server on my Debian GNU/Linux 3.1R4 server? I tried these and none of them give any error messages. What do I have to configure? Is there a way to let debian use one of my SMTP server on the same subnet? Thanks

pandora-fms:/# find / -name smtp
pandora-fms:/# echo "test message"|mail -s "subject field" xyx@hotmail.com
pandora-fms:/# echo "test" | mail -s "bill" xyx@hotmail.com
pandora-fms:/# echo "test" | mail -s -v "bill" xyx@hotmail.com
pandora-fms:/#
 
Ok, your first command should not give any error anyway, it will just output all files/folders matching the string smtp.

The other tests will send messages to xyx@hotmail.com, so why shoudl they give an error?


Anyway, where to start for a mail server..from the server itself.
WHat do you intend to use? Debian Sarge installs Exim by default, but nothing stops you from using sendmail, postfix, qmail, etc...

Once you choose any MTA then we can help you in configuring it.

The answer to your last question is yes, you can config a linux MTA to send through another SMTP server on your network.
Example, on sendmail you would add a line such as

define(`SMART_HOST', `smtp.yourserver.com')

QatQat



If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
if it didn't give any error i should assume that the message was sent? What I mean is I did not receive any emails. How do I trouble shoot this? How do I make sure my "sendmail" or this mail client is working correctly?
 
Okay I have installed the sendmail replacing the Exim. Now it is working thanks.
 
Cool, another one that has fallen in love with the misterious sendmail configuration files.


Just kidding, if you are new to sendmail you may hate it at the beginning but it is a very robust MTA and in its recent releases, also very flexible and featured.

Still is a mistery why those weird config files instead of something that resembles english (like postfix) but I guess it is matter of habit.


QaTQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
When I first started with sendmail, I used webmin to configure. Had it up in 10 minutes. Now I'm just used to the configs.

I still use webmin to monitor mailboxes. Haven't looked for a different way yet.

Mark
 
err...i used mostly "default", I don't even recall making heavy modifications to the config files....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top