+ Post New Thread
Results 1 to 14 of 14
*nix Thread, two NIC's on email server in Technical; Hi there Ive recently installed an E-Smith SME server for use as an internal mail server, as it contains everything ...
  1. #1
    Samson's Avatar
    Join Date
    Mar 2007
    Location
    Wales
    Posts
    201
    Thank Post
    7
    Thanked 1 Time in 1 Post
    Rep Power
    17

    two NIC's on email server

    Hi there

    Ive recently installed an E-Smith SME server for use as an internal mail server, as it contains everything from the POP/IMAP backend, to a nice Horde webmail front end.

    I origionally configured it with one NIC, for use on our Curriculum network, and it worked fine, its(eth0)'s IP being 172.20.56.253/255.255.252.0

    The need has come up for this server to be accessed via the Admin network within school, and so I plugged in another NIC of exactly the same model etc, booted the machine, configured a ifcfg-eth1, and configured the eth1 to have the IP of 172.21.57.253/255.255.254.0

    I can now ping the server from both networks, however, from the Admin network, pinging is all I can do. I cannot SSH onto the machine, nor can I access the webmail.

    I have configured a static route for eth1.

    Is there anything extra I need to to to allow SSH and web access from eth1 and thus the Admin network?

    I must have overlooked something.

    Any help would be greatly appreciated,

    Thanks.

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,033 Times in 813 Posts
    Rep Power
    341

    Re: two NIC's on email server

    Probably you either have a firewall on the 172.21.57.253 (try turning it ioff for testing) or you are telling apache/ssh to only listen on the 172.20.56.253 interface, in which case edit the config files for the services.

    see whats listening where:

    Code:
    netstat -nl

  3. #3
    Samson's Avatar
    Join Date
    Mar 2007
    Location
    Wales
    Posts
    201
    Thank Post
    7
    Thanked 1 Time in 1 Post
    Rep Power
    17

    Re: two NIC's on email server

    Setting them to listen on both... how do I do that?

    Ive looked through various config files and I cant seem to find anything regarding listening etc.

    I thought listening was port based, not device based?

    Thanks

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,033 Times in 813 Posts
    Rep Power
    341

    Re: two NIC's on email server

    If the output of netstat is anything like this, then the apache and sshd are already listening on both interfaces. (you tried without a proxy yes?):

    Code:
     netstat -nl
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 0.0.0.0:80             0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:22            0.0.0.0:*               LISTEN
    if instead of this, they are listening on the specific IP's tehn edit the sshd.conf and change to :
    Code:
    ListenAddress 0.0.0.0
    with apache, replace any reference to
    Code:
      172.20.56.253:80
    with
    Code:
     *:80

  5. #5
    Samson's Avatar
    Join Date
    Mar 2007
    Location
    Wales
    Posts
    201
    Thank Post
    7
    Thanked 1 Time in 1 Post
    Rep Power
    17

    Re: two NIC's on email server

    SSH was listening on an IP, so i changed that to 0.0.0.0

    However, httpd was listening on 0.0.0.0 in the first place, I will post an edit in 5 mins to let you know if I have SSH access over eth1.

    Edit: Right I cant access SSH still, and its probably worth mentioning, that I can ping to the IP of eth1, which is 172.21.57.253, but I cannot ping the hostname of the machine, which is DHMAIL... yet I can from the Curriculum network.

    Related?

  6. #6


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,033 Times in 813 Posts
    Rep Power
    341

    Re: two NIC's on email server

    can you telnet fron the admin side to port 80 on 172.21.57.253 from the admin side?
    Code:
     telnet 172.21.57.253 80
    if yes the server is mostly ok and problem is with the DNS/Proxy configs

  7. #7
    Samson's Avatar
    Join Date
    Mar 2007
    Location
    Wales
    Posts
    201
    Thank Post
    7
    Thanked 1 Time in 1 Post
    Rep Power
    17

    Re: two NIC's on email server

    No, I can't telnet to Port 80.

    This has completely baffled me.

    Everything works 100% from the Curriculum side, on eth0, i can ping, SSH, HTTP etc etc, but ALL i can do from the Admin side is ping... I cant even resolve DHMAIL to 172.21.57.253...

    Baffled.

  8. #8
    Samson's Avatar
    Join Date
    Mar 2007
    Location
    Wales
    Posts
    201
    Thank Post
    7
    Thanked 1 Time in 1 Post
    Rep Power
    17

    Re: two NIC's on email server

    the output of "ip route" is as follows:

    Code:
    172.21.56.0/23 via 172.21.56.1 dev eth1
    172.21.56.0/23 dev eth1 proto kernel scope link src 172.21.57.253
    172.20.56.0/22 dev eth0 proto kernel scope link src 172.20.56.253

  9. #9

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: two NIC's on email server

    Are those netmasks correct?

  10. #10
    Samson's Avatar
    Join Date
    Mar 2007
    Location
    Wales
    Posts
    201
    Thank Post
    7
    Thanked 1 Time in 1 Post
    Rep Power
    17

    Re: two NIC's on email server

    Admin (eth1): 255.255.254.0

    Curriculum (eth0): 255.255.252.0

    The fact that i can atleast ping the eth1 proves these are correct.

    Its something else thats stopping me accessing any of the SSH or web services via eth1.

  11. #11
    Samson's Avatar
    Join Date
    Mar 2007
    Location
    Wales
    Posts
    201
    Thank Post
    7
    Thanked 1 Time in 1 Post
    Rep Power
    17

    Re: two NIC's on email server

    Any help would really be appreciated, I'm tearing my hair out back here trying to get this working!

  12. #12
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,505
    Thank Post
    10
    Thanked 508 Times in 445 Posts
    Rep Power
    116

    Re: two NIC's on email server

    What have you done in the config front end? It might be treating one of them as a DMZ, and don't forget that it will overwrite and custom modifications you make to some files with its perl config stuff.

  13. #13

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: two NIC's on email server

    Do you use VLANs? Are they configured correctly?

  14. #14
    Samson's Avatar
    Join Date
    Mar 2007
    Location
    Wales
    Posts
    201
    Thank Post
    7
    Thanked 1 Time in 1 Post
    Rep Power
    17

    Re: two NIC's on email server

    Quote Originally Posted by DMcCoy
    What have you done in the config front end? It might be treating one of them as a DMZ, and don't forget that it will overwrite and custom modifications you make to some files with its perl config stuff.
    This could be the problem?
    Where would I find these config files?



SHARE:
+ Post New Thread

Similar Threads

  1. Email/web-server - how do you do... it?
    By beermouse in forum How do you do....it?
    Replies: 25
    Last Post: 29th June 2007, 02:28 PM
  2. ISA Server Email Server Publishing
    By Norphy in forum Windows
    Replies: 12
    Last Post: 26th May 2006, 02:14 PM
  3. Email Server
    By wesleyw in forum Windows
    Replies: 0
    Last Post: 11th January 2006, 03:07 PM
  4. Email Server
    By wesleyw in forum Windows
    Replies: 19
    Last Post: 22nd December 2005, 03:45 PM
  5. Getting your server to email you reports.
    By eejit in forum Windows
    Replies: 11
    Last Post: 23rd September 2005, 11:46 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •