UUCP CONFIGURATION
UUCP CONFIGURATION
- CASE 1 : UUCP CONFIGURATION FOR A NEW CLIENT
- UUCP configuration is to be carried out at Starcom's public server, the mail server of the client and the MX record of that domain name
- Consider that we have to add both incoming and outgoing queues for the domain name xyz.org
- Carry out the following steps
- On Starcom's public server
- Edit the file /etc/mail/virtusertable.txt and append the entry
- @xyz.org uucp-dom:inmail.xyz.org
- Execute the following command
- makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable.txt
- Edit the file /etc/uucp/sys and add the entries for the incoming and the outgoing queues
-
system inmail.xyz.org
myname uucp-in1.pub.starcomsoftware.com
called-login inmail.xyz.org
time any
commands rmailsystem outmail.xyz.org
myname uucp-out1.pub.starcomsoftware.com
called-login outmail.xyz.org
time any
commands rmail - If you want to configure only one queue then make the respective entry for the incoming or the outgoing queue as per the specification
- Edit the file /etc/uucp/passwd and add the following entry
- inmail.xyz.org xyz_passwd
- This represent a space separated queuename and its respective password which will be used while configuring the client uucp.
-
system inmail.xyz.org
- Edit the file /etc/mail/virtusertable.txt and append the entry
- On Client Mail server
- Edit the file /etc/uucp/sys and add the entries
-
system uucp-in1.pub.starcomsoftware.com
myname inmail.xyz.org
port type tcp
address uucp-in1.pub.starcomsoftware.com
chat ogin: inmail.xyz.org word: xyz_passwd
time any
chat-timeout 500
protocol-parameter t timeout 500system uucp-out1.pub.starcomsoftware.com
myname outmail.xyz.org
port type tcp
address uucp-out1.pub.starcomsoftware.com
chat ogin: outmail.xyz.org word: cawoswa123
time any
chat-timeout 500
protocol-parameter t timeout 500
-
system uucp-in1.pub.starcomsoftware.com
- edit the file /usr/lib/uucp/uusched as user uucp and make the entry
-
ping -c2 uucp-in1.pub.starcomsoftware.com >/dev/null 2>&1
/usr/lib/uucp/uucico -r1 -S uucp-in1.pub.starcomsoftware.com &ping -c2 uucp-out1.pub.starcomsoftware.com >/dev/null 2>&1
/usr/lib/uucp/uucico -r1 -S uucp-out1.pub.starcomsoftware.com &
-
ping -c2 uucp-in1.pub.starcomsoftware.com >/dev/null 2>&1
- Add the following entry in the crontab of the uucp user
- 0-59/5 * * * * /usr/lib/uucp/uusched
- Point the mx of the xyz.org to pub1.starcomsoftware.com. For this the changes are to be made to the client's DNS Hosting Server
- Stop sendmail
- /etc/init.d/sendmail stop
- Edit the file /etc/mail/local-host-names and add the entry
- xyz.org
- Start sendmail
- /etc/init.d/sendmail start
- Edit the file /etc/uucp/sys and add the entries
- On Starcom's public server
- Stop sendmail
- /etc/init.d/sendmail stop
- Edit the file /etc/mail/local-host-names and add the entry
- xyz.org
- Start sendmail
- /etc/init.d/sendmail start
- Stop sendmail
- Testing of UUCP configuration
- On the client mail server execute the following command
- telnet uucp-in1.pub.starcomsoftware.com 540
- Login :
- Password :
- Enter the login name and password as per the specification in the /etc/uucp/passwd file on the public server
- If login is allowed then quit as the uucp port can accept connections form the client mail server
- Test mail from public server to client mail server address
- Send test mail from saurabh@gmail.com to xyz@xyz.org via telnet from public server and trace it in the logs /var/adm/log/mail.log.
- The mailer in the logs for the sendmail entry should be uucp-dom:inmail.xyz.org
- On the client side in order to verify proper transfer of mail execute the following command after the interval of 5 minutes
- uustat -m
- The logs of uucp conversations are
- /var/log/uucp/Log
- /var/log/uucp/Stats
- On the client mail server execute the following command
- CASE 2 : UUCP CONFIGURATION FOR AN ALREADY EXISTING UUCP CLIENT BUT FOR A NEW DOMAIN
- Consider the scenario where in you already have a uucp mail delivery configured for domain xyz.org
- Now the client wants that the mails coming for abc.org should also be delivered to the mail server that recieves mail for xyz.org
- In order to do that carry out the following configuration
- Point the mx of the xyz.org to pub1.starcomsoftware.com. For this the changes are to be made to the client's DNS Hosting Server
- On Starcom's public server
- Edit the file /etc/mail/virtusertable.txt and append the entry
- @abc.org uucp-dom:inmail.xyz.org
- Execute the following command
- makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable.txt
- Edit the file /etc/mail/virtusertable.txt and append the entry
- On Client's Mail Server
- Stop sendmail
- /etc/init.d/sendmail stop
- Edit the file /etc/mail/local-host-names and add the entry
- xyz.org
- Start sendmail
- /etc/init.d/sendmail start
- Stop sendmail
- On Starcom's public server
- Stop sendmail
- /etc/init.d/sendmail stop
- Edit the file /etc/mail/local-host-names and add the entry
- xyz.org
- Start sendmail
- /etc/init.d/sendmail start
- Stop sendmail
- Carry out the testing as described in the first case.
- Login to post comments
- Printer-friendly version
- Send to friend