Ieri sera era tardi, non ti ho dato la risposta completa riguardo a fetchmail, o meglio, non l'ho spiegato ecco un esempio che chiarisce meglio il suo lavoro:
Supponiamo che tu abbia un dominio
www.pippo.it e che le mail del tuo dominio siano webmaster@pippo.it, info@pippo.it e supporto@pippo.it.
Le persone che lavorano per te sono paolo che risponde alle richieste di informazioni e marco per il supporto ed ovviamente avranno la loro mail "interna" sul server sme legata all'account.
fetchmail server per recuperare le mail da info@pippo.it e recapitarla nella mail di paolo, idem per marco e webmaster alla tua, infatti fetchmailrc conterrà una cosa tipo questa se messo "per user" (utente e pass sono quelle dalla casella mail non dell'account locale!):
poll mail.pippo.it protocol pop3 user "nomeutente", with password "password", is "paolo" here;
questo nella home di paolo, nella home di marco la stessa cosa e idem nella tua home.
Se però metti fetchmailrc a livello globale diventa:
poll mail.pippo.it protocol pop3:
user "nomeutente", with password "password", is "paolo" here;
user "nomeutente", with password "password", is "marco" here;
user "nomeutente", with password "password", is "tuoaccount" here;
E questa seconda soluzione la preferisco perchè come amministratore ho solo un file da modificare in caso di cambiamenti, ma la scelta sta a te!
Se vuoi usare postfix (exim non l'ho mai usato per cui non dirò nulla) ci sono alcune cose da "sistemare":
Verificare qpsmtpd che è già installato perchè è il demone smtp standard di sme
Se c'è postfix per sme sei a posto, ma visto che il discorso è uscito.....non ti resta che "lavorare"
installa postfix con gli rpm di centos, dal link del mio post precedente ma attento che a te dovecot e la "roba" per gnome non servono.
Modificare i file di configurazione di postfix indicandoglidi usare qpsmtpd e alcuni dettagli (dominio, indirizzi ip, ecc):
Per il primo punto devi aprire /etc/postfix.master.cf (se vuoi che usi quello su tutte le interfacce di rete) e de-commentare la riga:
smtp inet n - n - - smtpd
Se invece vuoi usare smtp di postfix per la rete locale e qpsmtpd su quella esterna (o viceversa) devi de-commentare la stessa riga in /etc/postfix/main.cf sulla scheda che ti serve.
La posizione di questi file può essere diversa, ma centos tiene tutto in /etc/postfix per cui dovrebbero essere corretti.
Le altre modifiche sono relative al main.cf:
myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains =
home_mailbox = Maildir/ [Attento a questo qmail non so che formato usa, verificalo così mantieni le attuali mailbox]
myhostname: is the host name of the system (i.e, the system is called mail or mail.example.com).
mydomain: is the domain name for the email server (it can be a real or fake domain name).
myorigin: is the domain name that locally-posted email appears to have come from and is delivered to.
inet_interfaces: sets the network interfaces that Postfix can receive mail on. These need to include at least localhost and the local domain.
mydestination: is the list of domains that will be delivered to (i.e, this server is the final destination for email addressed to these domains).
mynetworks: is a list of trusted IP addresses that may send or relay mail through the server. Users attempting to send email through the server originating from IP addresses not listed here will be rejected.
relay_domains: is a list of destination domains this system will relay mail to. By setting it to be blank we ensure that our mail server isn't acting as an open relay for untrusted networks. The reader is advised to test that their system isn't acting as an open relay here:
http://www.abuse.net/relay.htmlhome_mailbox: sets the path of the mailbox relative to the users home directory and also specifies the style of mailbox to be used. Postfix supports both Maildir and mbox formats and readers are encouraged to read up on the merits of each for themselves. However, in this article we have chosen to use Maildir format (a trailing slash indicates Maildir format. To specify mbox format, the reader would use home_mailbox = Mailbox).
Per ulteriori informazioni sui file di configurazione di postfix devi guardare su
www.postfix.orgqpsmtpd lo "gestisci" già da sme, cercando in rete vedrai che richiedono di installare dei moduli perl, cosa che hai già dato che sme (per quanto ne so) è l'unico che lo usa in configurazione standard.
A questo punto dovrebbe essere a posto, già che saresti all'opera con qpsmtpd controlla i plugin che ha attivi e semmai aggiungi quello che ti serve (o togli quello che è di troppo!)
infine ci sarebbe la questione dei template, ma io preferisco agire direttamente sui file di configurazione, quindi se sei in grado di farli tu meglio, altrimenti passiamo la palla a chi ne sa di più a riguardo.