ISPConfig for a local mailserver, connected with the ISPConfig main mailserver

Discussion in 'Installation/Configuration' started by voltron81, Nov 16, 2009.

  1. voltron81

    voltron81 New Member

    Hello to everybody.
    I've realized a mailserver with ISPConfig 3.0.0.6
    Now I've to complete the scenario: I've to create in the location B another mailserver, that will be connected to the main mailserver.
    This mailserver will store in a queue all the email to be sent and it will connect to the main mailserver just when the owner approve.
    The same also to collect with fetchmail the email from the main mailserver.
    I was thinking to install ISPConfig also in the location B (location C, etc...) and after configure postfix as SMTP replay.
    I was also thinking to realize the communications between main mailserver and Location B in a compressed SSH tunnel.
    Somebody have some good suggestions about that configuration?

    thanks
    Michele
     
  2. voltron81

    voltron81 New Member

    I was looking the "Email routing" of ISPConfig... maybe I could use it to relay all the emails to be sent from the local mailserver to the main mailserver.
    May somebody tell me what is "Destination" and "Sort by"?

    Thanks
    Michele
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Destination is an IP address or hostname. Sort by is the field that is used to sort the routing rules.
     
  4. voltron81

    voltron81 New Member

    Thanks Till.
    So it's enough that I setup the "email routing" into the local mail server to relay all the emails to send to the main mailserver, right?

    If I want connect this two mailservers (the main one and the local one) with a compressed SSH tunnel(so that both fetchmail and email routing will pass through this tunnel), where I can find the script that launch this 2 functions, so that I can add the ssh command?

    Thanks
    Michele
     
    Last edited: Nov 17, 2009
  5. voltron81

    voltron81 New Member

    Ok I've realized the configuration for relay and fetch emails.
    But I still can not find where is the script what launch that features, so to add in this scripts the command to make a compressed SSH tunnel...
    Have somebody an idea where I can find it?

    After that the next step will be setup a cron just for fetchmail and email relay, so that I can decide locally when I want send/fetch emails...

    Thanks
    Michele
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no script that gets started when a email is relayed. Postfix is doing the complete relay process.
     
  7. voltron81

    voltron81 New Member

    Ok this is for the relay.
    What about fetchmail?
    I guess there is a script that launch the fetch operation...

    Thanks
    Michele
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Look in the getmail crontab.
     
  9. voltron81

    voltron81 New Member

    Mmmm, to be honest I'm looking the cronfile, but I can not find nothing related with getmail... May you please be a bit more accurate?

    About the mail relay, I've found this howto (http://taint.org/2003/10/14/021302a.html) that explain me how to do.
    So, once that I've created a SSH tunnel, I've to setup getmail and postfix to go through it...

    Thanks Till
    Michele
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you looked at the root crontab and not the getmail crontab as I suggested above. You can do this e.g. by executing:

    su getmail
    crontab -l
     
  11. voltron81

    voltron81 New Member

    Perfect Till,
    I found it.
    I saw that the script check the configuration file in /etc/getmail and after launch the command
    Code:
    exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles
    How can I config getmail to communicate through the ssh tunnel?
    I found an howto about that, but with fetchmail and not getmail...

    thanks
    Michele
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Dont know. I've never needed such a setup.
     
  13. voltron81

    voltron81 New Member

    Ok Till, thanks a lot.
    Anyway, for the others, if and when I'll find the way, I'll post it
    :)

    Thanks
    Michele
     

Share This Page