making sendmail work with fetchmail

Here is the situation:

Our SGI workstation is using "ppp" to establish connection with our account "peter" at our ISP, and all our networking to/from the Internet is OK. Our PPP Client is assigned IP addresses DUNAMICALLY by the ISP's PPP Server.

Outgoing mail works fine.

Incoming mail (any mail to our domainname "our.domain.com") is successfully spooled by our ISP into "peter@isp.com".
I use "fetchmail" to get the mail from the ISP's POP3 server, and I distribute MANUALLY (and painfully) the mail to the appropriate recipients (peter@our.domain.com, bill@our.domain.com, etc).

I would like to configure "sendmail" to pick-up and distribute the mail, as described above.

ANY SUGGESTIONS???
petertzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dgravesCommented:
From your question, I am surmising that your connection is not a "dedicated" one.  That is, you are disconnecting at times and only dialing in at other times.

Unfortunately, sendmail does not like this.  

There is, however, an answer.  As a matter of fact, there are two answers.  The first is not a terribly simple one, but it's been done multiple times and does work.  The configurations at your ISP will probably cost you more money too.  The second is much simpler, probably won't cost you any more, but will be annoying to set up , as are all unix operations.

What you need to do is to have your ISP change your configuration.  Currently, they are dumping all the mail headed to your domain into one mailbox.  This is what you need to do
instead:

First, your ISP must remove the rule in it's sendmail system that dumps all the mail in your domain to a standard unix mailbox.  This will force the mail to "queue".... I'll explain the details:

Have your ISP add 2 DNS MX records under your domain.  The first must point to a STATIC IP that your ISP must assign to your account.  The 2nd MX record must point to them.  The 2nd MX record must be set to have a higher "cost" than the first.  Your ISP will know how to create these records.

Now:  When mail comes in that if bound for your domain -- the first place it'll try is your computer.  If you're online -- boom-- your machine sees it, receives it, and distributes it to a standard mailbox.  If you're OFFLINE, then the 2nd MX record takes over and has the mail "queue" in the mail queue on your ISP's server.  Your ISP will now try , every hour , for 5 days, to get the mail to your server.

This is the last part of the equation.  You have to now tell your  ISP's sendmail when you're online so that you can "dequeue" the mail.  Your ISP will have to be running a later version of sendmail (which he probably is).  All you do is telnet to port 25 of your ISP's server, issue a command -- and this will dequeue the mail to your sendmail.   Typically these commands are in a script that runs whenever you log in.

This is a general overview of the problem and the solution.  There are specifics regarding the commands, the mx records, etc that I haven't gone into detail with.

This solution gets used all the time by people who have Microsoft Exchange servers but aren't connected all the time.

--------------------
Your second solution is simply to use UUCP.  This is built into unix.  Your ISP will set up a UUCP account, and you will set up the same -- typically there's a directory called /etc/uucp.  You'll set up a new "system" in the /etc/uucp/Systems, and you'll
configure things like phone number, times to dial in, etc.

Then, your ISP will reconfigure your account to dump all mail from your domain to a UUCP account.  Badda Bing, Badda Boom -- you're done.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
petertzAuthor Commented:
I am impressed with the completeness of the answer, maybe
because this is the first time I post a question in this
group, nevertheless I am impressed.

Thanks

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.