Fetching multiple domains at once

Need help? Ask here.

Moderator: Moderators

Post Reply
atomant
Posts: 10
Joined: Sat Nov 20, 2004 9:32 am

Fetching multiple domains at once

Post by atomant »

Is it possible to fetch multiple domains with one fetchmail command?
Bye,
Sasa
birla
Posts: 4
Joined: Thu Dec 02, 2004 5:55 pm

Post by birla »

Sure. Just put the appropriate info in your .fetchrc file -

poll pop-server.mydomain.com proto pop3 user "superman" with pass "kryptonite" is "mylogin" here
poll pop-server.mydomain2.com proto pop3 user "batman" with pass "robinsgay" is "mylogin" here
atomant
Posts: 10
Joined: Sat Nov 20, 2004 9:32 am

Post by atomant »

I mean, I fetch with ETRN command, so it looks like:
fetchmail -p ETRN --fetchdomains mydomain mail.rollernet.us
So the question is if I can use only one mydomain or can I use more mydomains in the same line, e.g.:
fetchmail -p ETRN --fetchdomains mydomain1 mydomain2 mydomain3 mail.rollernet.us
Bye,
Sasa
RollerNetSupport
Site Admin
Posts: 598
Joined: Wed Nov 17, 2004 10:05 pm
Location: Nevada
Contact:

Post by RollerNetSupport »

Yes, you can do:

fetchmail -p ETRN --fetchdomains mydomain1,mydomain2,mydomain3 mail.rollernet.us

Although if one of the domains in the list returns an error, the others following it will not be processed.
Technical Support support@rollernet.us
Roller Network LLC
Post Reply