[Exim] ETRN verses Imap over ssh

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Karl Schmidt
Data:  
Para: exim-users
Asunto: [Exim] ETRN verses Imap over ssh
I have a co-hosted server running my incoming mail - I currently am fetching
my mail from a mailbox to my internal server - both machines are running
Exim. I have fechmail set up to work over imap/ssh to get the mail - but
have not been able to idle the connection. The fetch mail man page also
warns about using it in this fashion. (I don't see why if it works)

I have looked into using etrn - but it appears to need a hole in the
firewall - if I understand correctly it responds by opening a second
connection to relay the mail. While that is well and good, the goal here is
to get the relay by establishing a secure connection from the private side
and not having any open ports.

Is there a better way?

Here is the fetchmail setup - for others who may want to do the same thing.
You need to have an open ssh connection without a pass phrase - (that means
you need to you machine physically secure)

set logfile "/var/log/fetchmail.log"
set postmaster "postmaster"
set bouncemail
set spambounce
set properties ""
set daemon 60
poll mail.xtronics.com with proto IMAP port 143 plugin "ssh %h
/usr/sbin/imapd" no envelope
    localdomains xtronics.com transtronics.com open-books.com
       user 'mailholder' there with password 'password' to * options  no
rewrite
    antispam 571 550 501 554


------------------------------------------------
Karl Schmidt (ks150)     EMail Karl@???
Transtronics, Inc.       WEB http://xtronics.com
3209 West 9th Street     Ph(785) 841-3089
Lawrence, KS 66049       FAX(785) 841-0434