2) I can't send E-mails:ERROR:
ERROR : Connection dropped by imap-server.
Warning: fsockopen(): unable to connect to localhost:25 in /var/www/localhost/htdocs/squirrelmail/class/deliver/Deliver_SMTP.class.php on line 59
ERROR:
Connection refused
Server replied: 111
Transaction failed
Server replied: 554 <root@geforce.no-ip.org>: Relay access denied
Code: Select all
...
#*sh: -c: line 1: unexpected EOF while looking for matching `''
sh: -c: line 2: syntax error: unexpected end of file
fetchmail: SIGPIPE thrown from an MDA or a stream socket error
fetchmail: socket error while fetching from mail.home.nl
fetchmail: 6.2.5 querying mail.home.nl (protocol POP3) at Sun Jun 6 19:40:03 2004: poll completed
fetchmail: Query status=2 (SOCKET)
...Code: Select all
...
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> RCPT TO:<harm@localhost>
fetchmail: SMTP< 554 <localhost[127.0.0.1]>: Client host rejected: Access denied
fetchmail: SMTP error: 554 <localhost[127.0.0.1]>: Client host rejected: Access denied
fetchmail: SMTP listener doesn't like recipient address `harm@localhost'
...Code: Select all
Kryptonite courier-imap # /etc/init.d/courier-imapd-ssl start
* Starting authdaemond.plain... [ ok ]
* Starting courier-imapd over SSL...
bind: Address already in use
ll_daemon_start: Resource temporarily unavailable [ !! ]Code: Select all
Kryptonite courier-imap # grep imaps /etc/services
imaps 993/tcp # IMAP over SSL
imaps 993/udp # IMAP over SSL
Kryptonite courier-imap # ps ax | grep imap
32363 pts/85 S 0:00 grep imap
Kryptonite courier-imap # netstat -A inet -lp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 10494/stunnel
Where I put this code line?!?!?!?!?!?!6.2 Automating and Finalizing:
Since we're using Fetchmail in non-daemon mode, we'll use cron to emulate it. Here's the correct cron line, however I have found vcron tends to choke on it.
Code:
*/10 * * * * /usr/bin/fetchmail -a -s -m "/usr/bin/procmail -d \%T"
The above code block adds a cron job that will run every 10 minutes and fetch email and then passes it directly to procmail. Thanks to requiem for the correct crontab line.
Code: Select all
crontab -e Code: Select all
vi /etc/groupCode: Select all
nano /etc/groupCode: Select all
cron:x:16:cron,*your_user_name*Code: Select all
/usr/bin/fetchmail -a -s -m "/usr/bin/procmail -d \%T"
sh: -c: line 1: unexpected EOF while looking for matching `''
sh: -c: line 2: syntax error: unexpected end of file
fetchmail: SIGPIPE thrown from an MDA or a stream socket error
fetchmail: socket error while fetching from *nameofmypopmailserver*
fetchmail: Query status=2 (SOCKET)
Code: Select all
/usr/bin/fetchmail -a -s -m "/usr/bin/procmail -d \%T"
sh: -c: line 1: unexpected EOF while looking for matching `''
sh: -c: line 2: syntax error: unexpected end of file Code: Select all
*/2 * * * * /usr/bin/fetchmail -sCode: Select all
fetchmail: SIGPIPE thrown from an MDA or a stream socket error
fetchmail: socket error while fetching from *nameofmypopmailserver*
fetchmail: Query status=2 (SOCKET)Code: Select all
*/2 * * * * /usr/bin/fetchmail -s
Code: Select all
Unable to open this mailbox.Code: Select all
Error connecting to IMAP server: localhost.
111 : Connection refused