Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 1998 16:49:51 +0300 (MSK)
From:      Varshavchick Alexander <alex@metrocom.ru>
To:        Michael Doyle <relyod@indigo.ie>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: POP/Sendmail configuration
Message-ID:  <Pine.BSF.3.96.980213163409.4796D-100000@alex.metrocom.ru>
In-Reply-To: <3.0.5.32.19980213125307.0096b4b0@pop.indigo.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 13 Feb 1998, Michael Doyle wrote:

> At 10:29 13/02/1998 +0000, you wrote:
> >I don't see this in the FAQ, but
> >I'm sure someone has come up against it before...
> >
> >
> >My ISP has put all the mail for my domain into a POP account on 
> >their server. How can I get my FreeBSD box to collect it, and then 
> >re-distribute it to the correct users ?
> >
> 
> Me, replying to my own message.
> Here's a wild guess, someone please tell me if it's 
> a good effort, or a stupid guess :-)
> 
> 	popclient -u <user> -p <pwd> -c mailhost | sendmail
> 
> If I'm right, that would make popclient go and get all the mail
> from the POP account on mailhost, (using username and password supplied)
> and pipe all its output into sendmail.
> Sendmail should then re-send the messages. (This assumes that popclient
> will output the messages in the correct format) 
> 
> WILL THIS WORK, or do I need to try something different?

Instead popclient you may use fetchmail - it is newer and with more
options. But this way all mail will be sended to only one user. In order
to redistribute it to original recipients you may use procmail for that
user (or install procmail as a local mailer for sendmail) and from
procmailrc file redirect all mail via sendmail with "-t" flag:

Extract from man for sendmail:

 -t          Read message for recipients.  To:, Cc:, and Bcc: lines will
             be scanned for recipient addresses.  The Bcc: line will be
             deleted before transmission.  Any addresses in the argument
             list will be suppressed, that is, they will not receive
             copies even if listed in the message header.

But better way, of cause, to ask your ISP to don't use one POP account for
your domain but make queueing instead so that you may get mail via ETRN,
for example. See this list's archives and FAQ (http://www.sendmail.org)
for more info.

Bye

Varshavchick Alexander, Metrocom Joint Stock Company
Phone: (812)118-3322, 314-8986(fax)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980213163409.4796D-100000>