
Code: Select all
maildirmake ~/.maildir/
For me it's like imap don't not that $HOME/.maildir is my mailbox or don't know were to search or that it's a maildir directori.The current command did not succed. The mail server responded : Unable to open this mailbox..
Code: Select all
vi /etc/courier-imap/imapd
##NAME: MAILDIRPATH:0
#
# MAILDIRPATH - directory name of the maildir directory.
#
#MAILDIRPATH=Maildir
MAILDIRPATH=Maildir
#Hardwire a value for ${MAILDIR}
#MAILDIR=Mail
MAILDIR=Mail
#Put any program for ${PRERUN} here
PRERUN=
Code: Select all
ls ~/.maildir/INBOX.new
Code: Select all
MAILDIRPATH=Maildir
MAILDIR=.maildir
Code: Select all
# ln -s /etc/sasl2/smtpd.conf /usr/lib/sasl2/smtpd.conf Code: Select all
May 6 10:32:06 athame /postfix/qmgr [17418]: warning: connect to transport smtp-amavis: Connection refused
Code: Select all
steve@webserver bin $ ./getmymailnow2
Enter password for steve@/usr/bin/procmail -d %T:
fetchmail: couldn't find canonical DNS name of /usr/bin/procmail -d %T (/usr/bin
/procmail -d %T)
fetchmail: Query status=11 (DNS)
steve@webserver bin $ fetchmail: Query status=11 (DNS)
Code: Select all
#!/bin/bash
/usr/bin/fetchmail -a -s -m -k "/usr/bin/procmail -d %T"
Code: Select all
Your message did not reach some or all of the intended recipients.
Subject: testing one more time
Sent: 5/10/2004 9:16 AM
The following recipient(s) could not be reached:
'[i]outbound@mail.address[/i]' on 5/10/2004 9:16 AM
554 <unknown[192.168.0.6]>: Client host rejected: Access denied


Code: Select all
server root # sa-learn --dir --spam /home/niklas/.maildir/.spamCode: Select all
Learned from 1 message(s) (3 message(s) examined).
Code: Select all
server root # sa-learn --dir --spam /home/niklas/.maildir/.spam/cur/Code: Select all
Learned from 65 message(s) (66 message(s) examined).
Code: Select all
user@server $ crontab -e
#This scans for spam and for good mails every half hour.
#Set the interval (30 minutes) appropriatly for your convenience and the amount of mails you get.
*/30 * * * * sa-learn --dir --spam /home/user/.maildir/.spam > /dev/null 2>&1
*/30 * * * * sa-learn --dir --ham /home/user/.maildir/ > /dev/null 2>&1 Code: Select all
user@server $ crontab -e
#This scans for spam and for good mails every half hour.
#Set the interval (30 minutes) appropriatly for your convenience and the amount of mails you get.
*/30 * * * * sa-learn --dir --spam /home/user/.maildir/.spam/cur > /dev/null 2>&1
*/30 * * * * sa-learn --dir --ham /home/user/.maildir/cur > /dev/null 2>&1 The config file has to be /etc/mail/spamassassin/local.cf.10.4 Configure Spam Assassin
This can be done automatically (almost) by using a script you can find here:
http://www.yrex.com/spam/spamconfig.php
Place the config file here: /etc/mail/spamassassin
Code: Select all
May 18 17:52:00 computername CRON[12046]: (username) CMD (/usr/bin/fetchmail -a -s -m "/usr/bin/procmail -d \%T" )
May 18 17:52:21 computername CRON[12045]: (username) MAIL (mailed 696 bytes of output but got status 0xffffffff )Code: Select all
Subject: Cron <username@domain> /usr/bin/fetchmail -a -s -m "/usr/bin/procmail -d \%T"
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/username>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=username>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 pop.bluewin.ch
fetchmail: Query status=2 (SOCKET)
sh: -c: line 1: unexpected EOF while looking for matching `''
sh: -c: line 2: syntax error: unexpected end of file
fetchmail: MDA returned nonzero status 2
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 pop.gmx.ch
fetchmail: Query status=2 (SOCKET)Code: Select all
*/2 * * * * /usr/bin/fetchmail -a -sdo it like i did: don't use a /etc/fetchmailrc file with every account written in it, but use a similar but userspecific ~/.fetchmailrc file. remember to set the postmaster in ~/.fetchmailrc to the username for which you want the mails to be downloaded (same goes to every user options in the file too). if you have several mal accounts for one user you may want to use procmail to filter the mails into different mail foldersblatch wrote:Ok. Let's say my server is jth.ath.cx. I want to be able to send mail to jth@jth.ath.cx. I don't want fetchmail to read anything from any OTHER e-mail accounts, I want to setup my OWN PERSONAL e-mail account based on this address. How would I do that? I've done EVERYTHING in this tutorial, but I can't receive mail to that address.
Code: Select all
/etc/postfix/master.cfCode: Select all
-o smtpd_sasl_auth_enable=yesCode: Select all
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destinationNo. Forget fetchmail. I want OTHER e-mail systems to be able to send to my OWN PERSONAL e-mail address ON MY SERVER and RECEIVE it.BlinkEye wrote:do it like i did: don't use a /etc/fetchmailrc file with every account written in it, but use a similar but userspecific ~/.fetchmailrc file. remember to set the postmaster in ~/.fetchmailrc to the username for which you want the mails to be downloaded (same goes to every user options in the file too). if you have several mal accounts for one user you may want to use procmail to filter the mails into different mail foldersblatch wrote:Ok. Let's say my server is jth.ath.cx. I want to be able to send mail to jth@jth.ath.cx. I don't want fetchmail to read anything from any OTHER e-mail accounts, I want to setup my OWN PERSONAL e-mail account based on this address. How would I do that? I've done EVERYTHING in this tutorial, but I can't receive mail to that address.
Code: Select all
mynetworks =127.0.0.0/8, 10.10.10.0/24Code: Select all
inet_interfaceCode: Select all
inet_interface = allCode: Select all
Ihre Nachricht hat einige oder alle Empfänger nicht erreicht.
Betreff: test
Gesendet am: 20.05.2004 15:30
Folgende Empfänger konnten nicht erreicht werden:
'outbound@email.adress' am 20.05.2004 15:30
554 <stefan.benzman.ath.cx[192.168.0.3]>: Client host rejected: Access denied
Code: Select all
match_string: mynetworks ~? debug_peer_list
match_string: mynetworks ~? fast_flush_domains
match_string: mynetworks ~? mynetworks
match_string: relay_domains ~? debug_peer_list
match_string: relay_domains ~? fast_flush_domains
match_string: relay_domains ~? mynetworks
match_string: relay_domains ~? permit_mx_backup_networks
match_string: relay_domains ~? qmqpd_authorized_clients
match_string: relay_domains ~? relay_domains
match_string: permit_mx_backup_networks ~? debug_peer_list
match_string: permit_mx_backup_networks ~? fast_flush_domains
match_string: permit_mx_backup_networks ~? mynetworks
match_string: permit_mx_backup_networks ~? permit_mx_backup_networks
maps_append: proxy:unix:passwd.byname
connect to subsystem private/proxymap
send attr request = open
send attr table = unix:passwd.byname
send attr flags = 64
private/proxymap socket: wanted attribute: status
input attribute name: status
input attribute value: 0
private/proxymap socket: wanted attribute: flags
input attribute name: flags
input attribute value: 80
private/proxymap socket: wanted attribute: (list terminator)
input attribute name: (end)
dict_proxy_open: connect to map=unix:passwd.byname status=0 server_flags=0120
dict_open: proxy:unix:passwd.byname
maps_append: hash:/etc/mail/aliases
dict_open: hash:/etc/mail/aliases
match_string: smtpd_access_maps ~? debug_peer_list
match_string: smtpd_access_maps ~? fast_flush_domains
match_string: smtpd_access_maps ~? mynetworks
match_string: smtpd_access_maps ~? permit_mx_backup_networks
match_string: smtpd_access_maps ~? qmqpd_authorized_clients
match_string: smtpd_access_maps ~? relay_domains
match_string: smtpd_access_maps ~? smtpd_access_maps
starting TLS engine
watchdog_create: 0x80a7400 18000
watchdog_stop: 0x80a7400
watchdog_start: 0x80a7400
connection established
master_notify: status 0
name_mask: resource
name_mask: software
name_mask: noanonymous
connect from stefan.benzman.ath.cx[192.168.0.3]
> stefan.benzman.ath.cx[192.168.0.3]: 220 server.benzman.ath.cx ESMTP Postfix
watchdog_pat: 0x80a7400
< stefan.benzman.ath.cx[192.168.0.3]: EHLO stefan
> stefan.benzman.ath.cx[192.168.0.3]: 250-server.benzman.ath.cx
> stefan.benzman.ath.cx[192.168.0.3]: 250-PIPELINING
> stefan.benzman.ath.cx[192.168.0.3]: 250-SIZE 10240000
> stefan.benzman.ath.cx[192.168.0.3]: 250-VRFY
> stefan.benzman.ath.cx[192.168.0.3]: 250-ETRN
> stefan.benzman.ath.cx[192.168.0.3]: 250-STARTTLS
match_hostname: stefan.benzman.ath.cx ~? 127.0.0.0/8
match_hostaddr: 192.168.0.3 ~? 127.0.0.0/8
match_hostname: stefan.benzman.ath.cx ~? 192.168.0.0/24
match_hostaddr: 192.168.0.3 ~? 192.168.0.0/24
> stefan.benzman.ath.cx[192.168.0.3]: 250-XVERP
> stefan.benzman.ath.cx[192.168.0.3]: 250 8BITMIME
watchdog_pat: 0x80a7400
< stefan.benzman.ath.cx[192.168.0.3]: MAIL FROM: <benzman@benzman.ath.cx>
extract_addr: input: <benzman@benzman.ath.cx>
extract_addr: result: benzman@benzman.ath.cx
fsspace: .: block size 4096, blocks free 1537772
smtpd_check_size: blocks 4096 avail 1537772 min_free 0 size 0
connect to subsystem public/cleanup
public/cleanup socket: wanted attribute: queue_id
input attribute name: queue_id
input attribute value: C3C6F1EA23
public/cleanup socket: wanted attribute: (list terminator)
input attribute name: (end)
send attr flags = 2
C3C6F1EA23: client=stefan.benzman.ath.cx[192.168.0.3]
> stefan.benzman.ath.cx[192.168.0.3]: 250 Ok
watchdog_pat: 0x80a7400
< stefan.benzman.ath.cx[192.168.0.3]: RCPT TO: <outbound@email.adress>
extract_addr: input: <outbound@email.adress>
extract_addr: result: outbound@email.adress
generic_checks: START
generic_checks: name=permit_sasl_authenticated
generic_checks: name=permit_sasl_authenticated status=0
generic_checks: name=reject
C3C6F1EA23: reject: RCPT from stefan.benzman.ath.cx[192.168.0.3]: 554 <stefan.benzman.ath.cx[192.168.0.3]>: Client host rejected: Access denied; from=<benzman@benzman.ath.cx> to=<outbound@email.adress> proto=ESMTP helo=<stefan>
generic_checks: name=reject status=2
> stefan.benzman.ath.cx[192.168.0.3]: 554 <stefan.benzman.ath.cx[192.168.0.3]>: Client host rejected: Access denied
watchdog_pat: 0x80a7400
< stefan.benzman.ath.cx[192.168.0.3]: QUIT
> stefan.benzman.ath.cx[192.168.0.3]: 221 Bye
disconnect from stefan.benzman.ath.cx[192.168.0.3]
master_notify: status 1
connection closed
watchdog_stop: 0x80a7400
watchdog_start: 0x80a7400
Code: Select all
inet_interfaces = allCode: Select all
mynetworks = 127.0.0.0/8 192.168.0.0/24Code: Select all
tail -n 100 /var/log/messages