Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: gbentley on January 20, 2009, 06:02:35 PM
-
I have an SME with 1 additional Virtual domain. Is it possible to add another ISP popbox to the mail config so that all mail for the Virtual domain is also fetched?
I have looked at the fetchmail contrib but this doesnt seem to do what I want (unless Im reading it wrong?)
Thanks!
-
I ended up making a custom template for /etc/fetchmail and adding the second server
details. Probably a better way but it will do for now.
-
Would you care to share with us the detail of the custom template you created ?
Also, is it possible to put a rule on one or both of the ISP catchall boxes so that mail is just pushed to the SME automatically ? In my part of the world, some ISP's allow it & some dont.
Peter
-
I just recreated /etc/e-smith/templates/etc/fetchmail/50multi-drop in the custom-templates folder and added a second poll section ;
$OUT .= "\n"; Add -->
my $PopMailServer = "mail.2ndDomain.com";
my $PopUsername = "2ndUser\@2ndDomain.com";
my $PopPassword = "Password";
$OUT .= "poll $PopMailServer\n";
$OUT .= $envelopeSpec;
$OUT .= " protocol $protocol\n";
$OUT .= " ssl\n" if $ssl eq 'enabled';
$OUT .= " no dns\n";
$OUT .= " localdomains $locals\n";
$OUT .= " username \"$PopUsername\" ";
$OUT .= "password \"$PopPassword\" to * here\n";
$OUT .= " smtphost 127.0.0.200\n";
$OUT .= " fetchall\n";
$OUT .= " forcecr\n"; >-- Add
$OUT .= "\n";
$OUT .= "EOF";
then # expand-template /etc/fetchmail
There is probably a better / more elegant way but this does work.
fetchamil only pulls mail from popboxes. You are probably looking at enabling / redirecting port 25 on your router to your SME and ammending your ISP MX records however Im no expert so better ask here again for more help.