Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th February 2007, 16:42
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default Mail server - setup virtual mail boxes

Hi folks,

AMD Athlon54 X2 512Kx2 socket AM2 3800
slamd64-11.0

Just completed installing the captioned OS with everything installed except GAME. This is an experiment. slamd64 is now running on the box.

I'm going to setup virtual mail boxes on this server, allowing my friends using the mail server sending and receiving mails. Please advise;

1) how to check whether sendmail is running and configured properly.
2) how to setup virtual mail boxes. Where can I find relevant tutorial.

TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 11th February 2007, 15:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by satimis
1) how to check whether sendmail is running and configured properly.
You can run
Code:
netstat -tap
to see if sendmail is running. Also check the mail log to see if there are problems.

Quote:
Originally Posted by satimis
2) how to setup virtual mail boxes. Where can I find relevant tutorial.
I don't know such a tutotirla for sendmail, only for Postfix. Why don't you use Postfix instead of sendmail? Postfix is easier to manage.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 11th February 2007, 15:53
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Hi falko]

Tks for your advice.

Quote:
You can run
Code:
netstat -tap
to see if sendmail is running. Also check the mail log to see if there are problems.
$ netstat -tap
Code:
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:time                  *:*                     LISTEN     -
tcp        0      0 *:submission            *:*                     LISTEN     -
tcp        0      0 *:x11                   *:*                     LISTEN     -
tcp        0      0 *:http                  *:*                     LISTEN     -
tcp        0      0 *:auth                  *:*                     LISTEN     -
tcp        0      0 *:domain                *:*                     LISTEN     -
tcp        0      0 *:ipp                   *:*                     LISTEN     -
tcp        0      0 *:smtp                  *:*                     LISTEN     -
tcp        0      0 host.satimis.com:34873  63.150.131.35:http      ESTABLISHED3132/firefox-bin
tcp        0      0 host.satimis.com:47681  jp-in-f99.google.c:http ESTABLISHED3132/firefox-bin
tcp        0      0 host.satimis.com:47684  jp-in-f99.google.c:http ESTABLISHED3132/firefox-bin
tcp        0      0 host.satimis.com:53864  63.150.131.26:http      ESTABLISHED3132/firefox-bin
tcp6       0      0 *:x11                   *:*                     LISTEN     -
tcp6       0      0 *:domain                *:*                     LISTEN     -
tcp6       0      0 *:ssh                   *:*                     LISTEN     -
# tail /var/log/maillog
Code:
Feb 11 08:09:33 host sm-msp-queue[2913]: starting daemon (8.13.8): queueing@00:25:00
Feb 11 19:33:15 host sm-mta[2910]: starting daemon (8.13.8): SMTP+queueing@00:25:00
Feb 11 19:33:15 host sm-msp-queue[2913]: starting daemon (8.13.8): queueing@00:25:00
Feb 11 19:49:43 host sm-mta[3200]: l1BBnfPP003200: ruleset=check_rcpt, arg1=<myself@satimis.com>, rela                   y=d137175.upc-d.chello.nl [213.46.137.175], reject=550 5.7.1 <myself@satimis.com>... Relaying denied
Feb 11 19:49:43 host sm-mta[3200]: l1BBnfPP003200: lost input channel from d137175.upc-d.chello.nl [21                   3.46.137.175] to MTA after rcpt
Feb 11 19:49:43 host sm-mta[3200]: l1BBnfPP003200: from=<telephusion.com@greatcallcenter.com>, size=0,                    class=0, nrcpts=0, proto=SMTP, daemon=MTA, relay=d137175.upc-d.chello.nl [213.46.137.175]
Feb 11 20:11:45 host sm-mta[3448]: l1BC9PtG003448: from=host@satimis.com, size=31, class=0, nrcpts=1,                    msgid=<200702111211.l1BC9PtG003448@host.satimis.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.                   0.1]
Feb 11 20:11:50 host sm-mta[3450]: l1BC9PtG003448: to=satimis@yahoo.com, delay=00:00:37, xdelay=00:00:                   05, mailer=esmtp, pri=120031, relay=e.mx.mail.yahoo.com. [216.39.53.1], dsn=2.0.0, stat=Sent (ok dirde                   l)
Feb 11 21:37:51 host sm-mta[2910]: starting daemon (8.13.8): SMTP+queueing@00:25:00
Feb 11 21:37:51 host sm-msp-queue[2913]: starting daemon (8.13.8): queueing@00:25:00
I tried "telnet localhost 25" to send a mail to satimis@yahoo.com. The said mail arrived without problem.


Quote:
I don't know such a tutotirla for sendmail, only for Postfix. Why don't you use Postfix instead of sendmail? Postfix is easier to manage.
slamd64-11.0 runs sendmail as default.

$ ps aux | grep sendmail
Code:
root      2910  0.0  0.1  28068  2328 ?        Ss   21:37   0:00 sendmail: accepting connections      
smmsp     2913  0.0  0.0  19308  1896 ?        Ss   21:37   0:00 sendmail: Queue runner@00:25:00 for /var/spool/clientmqueue
satimis   3173  0.0  0.0   1184   400 pts/1    R+   21:44   0:00 grep sendmail
$ ps ax | grep sendmail
Code:
 2910 ?        Ss     0:00 sendmail: accepting connections
 2913 ?        Ss     0:00 sendmail: Queue runner@00:25:00 for /var/spool/clientmqueue
 3175 pts/1    R+     0:00 grep sendmail
$ ps aux | grep postfix
Code:
satimis   3169  0.0  0.0   1184   400 pts/1    R+   21:43   0:00 grep postfix
$ ps ax | grep postfix
Code:
 3171 pts/1    R+     0:00 grep postfix
B.R.
satimis
Reply With Quote
  #4  
Old 11th February 2007, 16:25
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Don't know what you are trying to say, but you can not run both Postfix AND Sendmail on the same box without extensive tweaking and modifying either postfix or sendmail. It would be of little use either. Run only one MTA on your (production) systems. And run one MTA consistently, e.g. do not mix sendmail and postfix, other then for learning. Really, don't make it more complicated. Both Postfix and Sendmail require a significant amount of knowledge to run safely on the Internet now-a-days. By using only one flavor, you knowledge will grow more rapidly.
Reply With Quote
  #5  
Old 11th February 2007, 16:50
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Quote:
Originally Posted by martinfst
Don't know what you are trying to say, but you can not run both Postfix AND Sendmail on the same box without extensive tweaking and modifying either postfix or sendmail. It would be of little use either. Run only one MTA on your (production) systems. And run one MTA consistently, e.g. do not mix sendmail and postfix, other then for learning. Really, don't make it more complicated. Both Postfix and Sendmail require a significant amount of knowledge to run safely on the Internet now-a-days. By using only one flavor, you knowledge will grow more rapidly.
Hi martinfst,

I'm not prepared to run Sendmail and Postfix simultaneously on the same server. In response to falko's advice to run Postfix I tried to make it clear to him that Sendmail, being default MTA of slamd64, was already running. Postfix was not.

B.R.
satimis
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
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
virtual mail boxes setup satimis Server Operation 3 25th January 2007 19:32
Postfix reject connections gabrix Server Operation 27 25th January 2007 09:37
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 11:07
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 13:16


All times are GMT +2. The time now is 16:47.


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