#1  
Old 29th August 2012, 04:27
trappedinside trappedinside is offline
Junior Member
 
Join Date: Aug 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Simple SMTP Server Setup

I am looking for help and guidance on how to set-up a simple SMTP server for my sites to mail out from. I have a dedicated server just for the mail server so can make any changes I want. Currently it is running Debian 6 server ( no GUI ). I will be sending mail from PHP bases websites with PHPMailer.

My needs :

1. Outbound SMTP Mail only.
2. Relay via allowed IP's only.
3. Require username / password to relay.
4. Only relay for allowed domains ( I have about 30 domains ).
5. Log outbound mail.
6. Status reporting on how many mails per sender address are sent. ( optional )

Is the above possible ?

I have seen lots of guides on howto set-up complicated mail servers with POP3/ IMAP, Webmail etc... but I simply do not need that as i use Google Apps.

Last edited by trappedinside; 29th August 2012 at 11:51.
Reply With Quote
Sponsored Links
  #2  
Old 29th August 2012, 11:08
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 99 Times in 95 Posts
Default

Code:
apt-get install ssmtp
config settings (auth etc):
https://wiki.archlinux.org/index.php/SSMTP
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
  #3  
Old 29th August 2012, 11:49
trappedinside trappedinside is offline
Junior Member
 
Join Date: Aug 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the idea Mark_NL, however I am not looking for a command line tool. I am looking for something that listens on port 25 so I can send mail to it from PHP scripts on a web server.
Reply With Quote
  #4  
Old 29th August 2012, 12:20
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 99 Times in 95 Posts
Default

Your welcome but .. you're not reading into it .. just read the damn page will ya?

Quote:
SSMTP is a program to deliver an email from a local computer to a configured mailhost (mailhub). It is not a mail server (like feature-rich mail server sendmail) and does not receive mail, expand aliases or manage a queue. One of its primary uses is for forwarding automated email (like system alerts) off your machine and to an external email address.
Quote:
1. Outbound SMTP Mail only.
2. Relay via allowed IP's only.
3. Require username / password to relay.
4. Only relay for allowed domains ( I have about 30 domains ).
5. Log outbound mail.
6. Status reporting on how many mails per sender address are sent. ( optional )
1. yes
2. yes
3. yes
4. use msmtp instead of ssmtp
5. yes
6. no
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
  #5  
Old 29th August 2012, 13:00
trappedinside trappedinside is offline
Junior Member
 
Join Date: Aug 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missing something

Hi Mark_NL,

Thanks again for your time. Maybe I am missing something or my original post is not clear.

I want to send mail from my server to any other address on the internet. From how I read it SSMTP sends to a specific server regardless of the address it is sending to. It is no good forwarding an yahoo.com email to googlemail.com servers for example.

Thanks

Ian

Last edited by trappedinside; 29th August 2012 at 13:06.
Reply With Quote
  #6  
Old 29th August 2012, 13:20
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 99 Times in 95 Posts
 
Default

So you want to have you server directly send @yahoo.com to yahoo servers and @gmail.com directly to google mail servers? If so, install postfix or exim4.

postfix default install will suffice, but you might want to configure it a bit more to only allow local connections.

I've about 60 webservers, and one simple mailserver with postfix.

All the webservers have ssmtp installed, and relay all their mail that need to be send to postfix on the simple mailserver. That server on it's turn delivers the mail. That's it! 5-10mins of work.
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 Installation - Postfix queue stuck andrew971218 Installation/Configuration 21 15th July 2011 14:42
Not working emails (DNS and postfix problem?) shekiman Installation/Configuration 9 1st March 2011 16:25
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 22:08
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47


All times are GMT +2. The time now is 05:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.