James Heslin
Multimedia and Computer Games Development '13 at the University of Limerick
Skynet member September 2009-present
Setting up procmail for a Skynet address
I use GMail to access my incoming Skynet mail, using POP3. For outgoing mail I use an SSL login. This allows me to send Skynet emails from the GMail app on my phone and the GMail web app. Therefore, I do not have Skynet actually forward any mail to me.
Anyway. I'll go through the steps I used to set up procmail.
Just to test that forwarding would work on my account, I'll set up a .forward file.
First I ssh in and go to my mailconfig directory:
program9@faust:~$ ssh program9@skynet.ie program9@skynet:~$ cd /mailconfig/program9
Then I open vi and create the .forward file with the address to forward to in it:
program9@skynet:/mailconfig/program9/$ vi .forward program9@skynet:/mailconfig/program9/$ cat .forward otheraddress@crapmail.com
I test this a couple of times, and it works with no problems. I'm finished with .forward now, so I get rid of it:
program9@skynet:/mailconfig/program9/$ mv .forward .forward_unused
Now for procmail's control file, .procmailrc:
program9@skynet:/mailconfig/program9/$ vi .procmailrc I copied in these lines:
PATH=/bin:/usr/bin:/usr/bin MAILDIR=/var/mail/program9 LOGFILE=/home/program9/procmail.log SHELL=/bin/bash # :0 c !gmailaddress@gmail.com # :0 c: * ^From: .*studentnumber@studentmail.ul.ie .ULEmail/
I visited the roundcube webmail client and used Settings -> Folders to subscribe to the ULEmail folder. I sent emails from that address to
program9@skynet.ie and they went to the correct folder.
For additional procmail functions I will probably draw from the resources here:
http://www.panix.com/~elflord/unix/procmail.html It made for quite informative reading, including a recommendation to use the condition From.*address instead of \
.*address. I will try this.