![]() | ![]() | ![]() | ![]() |
|
faq search add article cool-stuff how-to main tips |
Posted by Santhosh Joseph on Thursday April 18, @03:19AMfrom the dept. In continuation with the how-to on setting up a simple e-mail server on a dial-up/cable internet connection, here is the second part of the article which focuses on setting up a POP Server. If you have not setup the SMTP Server read the first part of this Article. At the end of of the installation we should be able to : 1. Fetch mails from
different POP servers and distribute them to different users on the
LAN. The following assumptions are made : LocalUser Name
Local Password Yahoo User Name
Remote Password emp2
localpassword2 remp2@yahoo.com
remotepassword2
As root : # cd /usr/ports/mail/qpopper
next install fetchmail #cd /usr/ports/mail/fetchmail
Now we add users as required. # adduser Enter username [a-z0-9_-]: emp1 ............... The next task is to configure the .fetchmailrc file which is read by the fetchmail program for information such as the remote POP Server ID, user id and password etc. to access the POP account. # ee .fetchmailrc
poll pop.mail.yahoo.com
replace Make sure the .fetchmailrc file
is in the root users home directory. Next we add a startup script file so that fetchmail is started on reboot. # ee /usr/local/etc/rc.d /fetchmail.sh #!/bin/shecho -n ' Fetchmail' case "$1" in start) /usr/local/bin/fetchmail -a -s -K -F -d 600 ;; stop) kill -9 `cat /var/run/fetchamil.pid` ;; *) echo "Usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac exit 0 Ensure that you have set the proper permissions for this file. #chmod 0755 /usr/local/etc/rc.d/fetchmail.sh The final step of course, is to start qpopper. Please add the following line to /etc/inted.conf # ee /etc/inetd.conf pop3 stream tcp nowait root /usr/local/libexec/qpopper qpopper -s Now restart the machine and, Voila! - you should have a working POP server for your LAN. For more details : man qpopper man fetchmail < | >
|
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
| "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate |
|
| All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann. |