Solved

HACK for POP Mailsystem

Posted on 1997-11-23
3
198 Views
Last Modified: 2010-03-18
Hi:
I am looking for a hack (script) to use my linux server for picking up my email from a pop3 account.
This should be done automatic by a ppp connect.
NOW the difficult:
On my POP account i receive many emails not only adressed to me but to others which have been forwarded automaticly. I want this emails sorted in the right mail dirs on the linux server with correct from and reply to field!
That means i need a ready to install script which, after downloading and killing the ppp, sorts all emails into the correct boxes....

and now sending:
then the linux server should be acting like a smtp server for all clients conntected to it and should collect all emails and when the ppp connection is established should send the emails.

If you can provide a detailed discription of this system with everything included like scripts for ppp, crontab smtp etc. then i am willing to give you a lot more points!!!
0
Comment
Question by:dzeiss
3 Comments
 
LVL 2

Expert Comment

by:df020797
Comment Utility
Ok.

For starters... to pop your mail just use the popclient command. If you read the man file you easily can produce a script for it.

Filter mail? Well... use procmail and a good .procmailrc at your account.

Automatic exmptying the mailq when connected? Easy... have the PPP script cretaing a semaphore file. Then have sendmail dead until the semaphore exists (a cronjob). Start sendmail and emptying the queue.

The solution above is thiugh a single person solution. If you want to support multiple clients/computers... I recomend using UUCP as mail transfer method. Still you canuse PPP as uplink cuz UUCP can be done via tcp. Sendmail then just runs all the time at your side collecting outgoing mail which it queues in the uucp spool directory. When you're connected you start a UUCO script which contacts the UUCP server on the other side. It colletcs and delivers mail. The UUCP deamon on the otherside then speaks to its smtp server and passes ont he mails you wanted to send. Sendmail on the other side also colletcs all mails which is going to your system and gives them to the UUCP system which awaits your call to collect them.

Easy, no? :-)

0
 

Author Comment

by:dzeiss
Comment Utility
"the popclient command"
-can not be found in new distributions just fetchmail :-(
"I recomend using UUCP "
-well UUCP is rather old and almost no webhosting company supports this-> no good solution :-(

I think i asked for somehing detailed! How it should work i already know, just details missing...


0
 

Accepted Solution

by:
aligatoru earned 100 total points
Comment Utility
Well. To download the mail in your pop account you must use pop client
with the -o specifiying a file in wich the mail will go.
Then, afther the mail is downloaded you can use procmail to process
it and formail to generate 'good' From to and reply-to fields
in the header. The man procmailex will give you plenty of info
and working examples. There is no need to shutdown the sendmail
daemon.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now