Koozali.org: home of the SME Server

Adding second catchall popbox

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Adding second catchall popbox
« 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!
"If you don't know what you want, you end up with a lot you don't."

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Adding second catchall popbox
« Reply #1 on: January 20, 2009, 09:46:54 PM »
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.
"If you don't know what you want, you end up with a lot you don't."

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Adding second catchall popbox
« Reply #2 on: January 24, 2009, 09:09:31 AM »
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
...

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Adding second catchall popbox
« Reply #3 on: January 24, 2009, 09:47:26 AM »
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.



« Last Edit: January 24, 2009, 01:21:10 PM by gbentley »
"If you don't know what you want, you end up with a lot you don't."