Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Email System For The Home Network - Version 2.1
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 24, 25, 26, 27  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
luctor
n00b
n00b


Joined: 10 Sep 2004
Posts: 8

PostPosted: Mon Mar 06, 2006 9:20 am    Post subject: bind: Address already in use ll_daemon_start: Resource tempo Reply with quote

mxa055 wrote:
mxa055 wrote:
Hi there,

I am getting this error when trying to start courier-imap-ssl


Code:

/etc/init.d/courier-imapd-ssl start
 * Starting courier-authlib: authdaemond ...                              [ ok ] * Starting courier-imapd over SSL ...
bind: Address already in use
ll_daemon_start: Resource temporarily unavailable                         [ !! ]



Some people already mentioned that they have solved this issue but don't point to the solution.

Any help?

Regards,
Michael


A restart fixed the problem! :roll:


A restart didn't fix my problem.
This however did ...
Code:

tux rob # /etc/init.d/famd stop
 * Stopping famd ...                                                      [ ok ]
tux rob # /etc/init.d/courier-imapd-ssl start
 * Starting famd ...                                                      [ ok ]
 * Starting courier-imapd over SSL ...                                    [ ok ]


When I tried to start famd again ..
Code:
tux rob # /etc/init.d/famd start
 * WARNING:  "famd" has already been started.

So i removed it from default run-level
Code:

tux rob # rc-update -d famd
 * famd removed from the following runlevels: default
 * rc-update complete.

_________________
luctor et ejecto - I struggle and bail out
Back to top
View user's profile Send private message
feld
Guru
Guru


Joined: 29 Aug 2004
Posts: 593
Location: WI, USA

PostPosted: Fri Mar 17, 2006 11:34 pm    Post subject: Reply with quote

I've been following this guide, too, and I hope that I can reach my goals.

I have my ISP email and Gmail that I want on my server and I want access to that email via IMAP so I can dual boot and have access to my emails.

Gmail/ISP -> check/store on my server -> access from Windows/Linux

Windows/Linux -> send mail to my server -> forward to correct smtp for gmail or ISP, or just use one.

I hope that made sense.


Now I have just about finished the core of the guide but I have a problem. My check email script bombs. Here is my .fetchmailrc

Code:

set postmaster "feld"
poll pop.charter.net with proto POP3 auth password user "feld@charter.net" there with password "$PASSWORD" is feld here
options warnings 3600
poll "pop.gmail.com" with proto POP3 user "felderado@gmail.com" there with password "$PASSWORD" is feld here
options warnings 3600


my username on the server is feld. Both email providers require I login with the full email address. Gmail actually wants SSL, my ISP does not. When I run the checkmail script (which is referenced by the cronjob i setup according to the guide) it just hangs... doesnt seem to do anything.


Any tips, suggestions? I'd really like to get this going, it would be very handy! Thanks!


edit: found out gmail needs an ssl cert that someone provided perfect info to -- was missing procmail, think i might have fixed this... need to setup clients / cron for spamassassin and hope sending emails works and I might be configured! YAY!

Note: I had some odd error pop up about failing to send an email to feld@localhost?




-Feld


Gmail cert info:
http://download.gna.org/hpr/fetchmail/FAQ/gmail-pop-howto.html
_________________
< bmg505> I think the first line in reiserfsck is

if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); }
Back to top
View user's profile Send private message
feld
Guru
Guru


Joined: 29 Aug 2004
Posts: 593
Location: WI, USA

PostPosted: Sat Mar 18, 2006 4:04 am    Post subject: Reply with quote

hrm okay im very much confused...

i cant send any emails... smtp just isnt working. I'm showing that its listening, but starttls isnt working. my logs show:

Mar 17 22:00:04 mythtv postfix/postfix-script: starting the Postfix mail system
Mar 17 22:00:04 mythtv postfix/master[6937]: daemon started -- version 2.2.9, configuration /etc/postfix
Mar 17 22:00:06 mythtv postfix/smtpd[6989]: initializing the server-side TLS engine
Mar 17 22:00:06 mythtv postfix/smtpd[6989]: connect from skeletor.universe[192.168.1.110]
Mar 17 22:00:08 mythtv postfix/smtpd[6989]: lost connection after EHLO from skeletor.universe[192.168.1.110]
Mar 17 22:00:08 mythtv postfix/smtpd[6989]: disconnect from skeletor.universe[192.168.1.110]


what the heck is going on?


and telnet localhost 25 shows:mythtv etc # telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mythtv.universe ESMTP Postfix


so what is happening any why cant i send emails? :(


Thanks




edit: relayhost = [mailhost.isp.com] was needed so I could properly forward SMTP, and also I redid all my configs anyway just for clarification. It is now functioning. Sylpheed works great, but Outlook and Thunderbird in Windows dont like this for some reason so I'll just use the win32 build of Sylpheed.


Thanks for the great guide! This is a really great experience and it is extremely handy!!!!


edit #2: Oh my, what a discovery! Sylpheed for Windows actually gave me a USEFUL error message! "Avast does not accept TLS connections". If only Outlook and Thunderbird could have told me that my antivirus was the issue as plainly as Sylpheed did.... Anyway, Thunderbird gained progress but is now barking about a corrupt certificate even after I cleared them out and tried again. I guess native Windows email clients suck. Sylpheed is kickin ass, that's all I gotta say ;)

Thanks again for the guide!!!



-Feld
_________________
< bmg505> I think the first line in reiserfsck is

if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); }
Back to top
View user's profile Send private message
feld
Guru
Guru


Joined: 29 Aug 2004
Posts: 593
Location: WI, USA

PostPosted: Sat Mar 18, 2006 6:14 pm    Post subject: Reply with quote

Last question:

https://forums.gentoo.org/viewtopic-t-412468.html

The previous link shows how sSMTP can use your Gmail SMTP server... It requires StartTLS and your username and password to auth before sending your gmail. Is the previous obtainable through the tools used in your guide?

It appears to me that our setup will not work this way. In fact, I am quite confused as to of why we configured /etc/postfix/saslpass to include an smtp server + username/password when it refuses to use this information until we set our /etc/postfix/main.cf to use the relayhost setting and list our SMTP server. It just seems odd, but obviously it IS using that username/password or else I know I couldnt send emails. ANYWAY, I am unable to locate information showing that there are settings in either configuration file that will allow me to enable StartTLS.

Prove me wrong please, as I'd like to be able to have Gmail as a backup SMTP server if something was to happen.

(my ISP isn't the most stable thing in this world.... )



-Feld
_________________
< bmg505> I think the first line in reiserfsck is

if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); }
Back to top
View user's profile Send private message
fuzz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Apr 2002
Posts: 93

PostPosted: Sat Mar 25, 2006 8:52 am    Post subject: imap error Reply with quote

i'm getting
Code:
ERROR: Connection dropped by IMAP server.


my configs are

postfix/main.cf
Code:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain $mydomain
unknown_local_recipient_reject_code = 450
mynetworks_style = subnet
mynetworks = 127.0.0.0/8 192.168.1.100/124
mailbox_command = /usr/bin/procmail
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.16-r1/sample
readme_directory = /usr/share/doc/postfix-2.0.16-r1/readme
default_destination_concurrency_limit = 2
alias_database = hash:/etc/mail/aliases
local_destination_concurrency_limit = 2
alias_maps = hash:/etc/mail/aliases
home_mailbox = .maildir/

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated, reject

smtpd_use_tls=yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/ssl/postfix/server.key
smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
smtpd_tls_CAfile = /etc/ssl/postfix/server.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

smtp_sasl_password_maps = hash:/etc/postfix/saslpass
smtp_sasl_security_options = noanonymous

relayhost = [smtp.gmail.com]:587


courier-imap/authdaemond.conf
Code:

AUTHDAEMOND="authdaemond.plain"


courier-imap/authdaemond.conf
Code:

authmodulelist="authpam"


etc/sasl2/smtpd.conf (had to create file. was not there)
Code:

pwcheck_method:saslauthd
mech_list: plain login


etc/conf.d/saslauthd
Code:


SASLSASL_AUTHMECH=shadow

_RIMAP_HOSTNAME=""
SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=yes

SASLAUTHD_OPTS="-a ${SASL_AUTHMECH}"hd


etc/mail/aliases
Code:

# Basic system aliases -- these MUST be present.
MAILER-DAEMON:      postmaster
postmaster:         root

# General redirections for pseudo accounts.
adm:                root
bin:                root
daemon:             root
exim:               root
lp:                 root
mail:               root
named:              root
nobody:             root
postfix:            root

# Well-known aliases -- these should be filled in!
root:           linux user name
# operator:

# Standard RFC2142 aliases
abuse:              postmaster
ftp:                root
hostmaster:         root
news:               usenet
noc:                root
security:           root
usenet:             root
uucp:               root
webmaster:          root
www:                webmaster

# trap decode to catch security attacks
# decode:           /dev/null


squirrelmail/config
Code:

General
-------
1.  Domain                 : chargednetworks.com
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail

IMAP Settings
--------------
4.  IMAP Server            : localhost
5.  IMAP Port              : 993
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : true
8.  Server software        : courier
9.  Delimiter              : detect


var/log/messages
Code:

Mar 25 02:05:12 fuzzserv imapd-ssl: Connection, ip=[::ffff:127.0.0.1]
Mar 25 02:05:13 fuzzserv imapd-ssl: LOGIN FAILED, user=******, ip=[::ffff:127.0.0.
1]
Mar 25 02:05:13 fuzzserv imapd-ssl: authentication error: Input/output error
Mar 25 02:05:13 fuzzserv authdaemond: failed to connect to mysql server (server=
mysql.example.com, userid=admin): Unknown MySQL server host 'mysql.example.com'
(1)


please help

*hopefully i posted all the info needed

thanks
~fuzz
Back to top
View user's profile Send private message
kernelcowboy
Guru
Guru


Joined: 14 Feb 2004
Posts: 391
Location: New Plymouth, New Zealand

PostPosted: Tue Apr 25, 2006 1:14 am    Post subject: Reply with quote

The HOWTO states to edit the file
Code:

authdaemond.conf

which may be in
Code:

/etc/courier/authlib/ or
/etc/courier-imap/

and put in this line
Code:

AUTHDAEMOND="authdaemond.plain"


I couldn't find the file. So, I ignored it,
and everything seems to be working fine.
I didn't create it.

I did notice this in

Code:

/etc/init/courier-authlib


Code:

setauth() {
        source /etc/courier/authlib/authdaemonrc
        AUTHLIB="/usr/lib/courier/courier-authlib"
        AUTHDAEMOND="authdaemond"
        pidfile="/var/run/authdaemon.pid"
        logger="/usr/sbin/courierlogger"
        export DEBUG_LOGIN DEFAULTOPTIONS LOGGEROPTS
}

start() {
        checkconfig || return 1
        setauth


I didn't change it.

I'm sort of posting to help others, and to double check I'm not doing something wrong.
Back to top
View user's profile Send private message
aaronamd
n00b
n00b


Joined: 13 Oct 2005
Posts: 59

PostPosted: Sun May 21, 2006 6:44 pm    Post subject: Reply with quote

I just ran throug this guide and can say that I'm definatly impressed with the time that has been put into it. Unfortunatly I still have not gotten this to work. For some reason evolution rejects my password and says unknown error. I have read through some of this thread and not yet found anything that works, any ideals?
_________________
http://zigtech.net/forum
Back to top
View user's profile Send private message
Grilo
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 114
Location: Canada

PostPosted: Tue May 30, 2006 2:52 pm    Post subject: Reply with quote

Hi, I have followed this entire guide and it works great. I have only one problem I just noticed. Root does not get any mail. I have logwatch installed and ddclient and both mail root when needed. Using root and squirrel mail i can email my user and user can email out to anyone. but root cannot get mail from the user or from the system.

Any ideas. and i found an error in the messages log here it is

Code:
May 30 11:59:34 Sloop imapd-ssl: Connection, ip=[::ffff:127.0.0.1]
May 30 11:59:35 Sloop imapd-ssl: LOGIN, user=pat, ip=[::ffff:127.0.0.1], protoc$
May 30 11:59:35 Sloop imapd-ssl: Error reading ACLs for INBOX..cmeta: Invalid a$
May 30 11:59:35 Sloop imapd-ssl: Error reading ACLs for INBOX..ibex.index.data:$
May 30 11:59:35 Sloop imapd-ssl: Error reading ACLs for INBOX..ibex.index: Inva$
May 30 12:00:01 Sloop cron[11058]: (root) CMD (test -x /usr/sbin/run-crons && /$
May 30 12:00:01 Sloop cron[11059]: (root) CMD (rm -f /var/spool/cron/lastrun/cr$


Thanks for your help

Grilo
_________________
Knowledge is power but the drive to learn is harnessing wizdom
Back to top
View user's profile Send private message
rpcyan
n00b
n00b


Joined: 29 Aug 2004
Posts: 31
Location: Massachusetts, USA

PostPosted: Thu Jun 15, 2006 12:43 pm    Post subject: storage outside of ~/.maildir Reply with quote

Anybody have success with storing maildirs outside of one's homedir? I'd like to use my raid array for mail storage, but symlinks are rejected by procmail as being "BOGUS" and the procmailrc files are ignored completely since maildirs aren't real-time delivery or some such nonsense. I've seen reccomendations on changing the src/authenticate.c file and changing the MAILSPOOLDIR, which is set to /var/spool/mail. Thing is I doubt changing that will do any good since there are no spools present there other than for root, which was last modified a very long time ago.

Suggestions appreciated.
Back to top
View user's profile Send private message
matbintang
n00b
n00b


Joined: 12 Aug 2003
Posts: 22
Location: Canada

PostPosted: Sun Jun 18, 2006 5:59 am    Post subject: Backup System for the e-mail system Reply with quote

Has anyone implimented a reliable back-up regime for their Home e-mail system on the server side?
_________________
$>cd /pub
$>more beer
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Tue Jun 20, 2006 9:56 am    Post subject: Re: Backup System for the e-mail system Reply with quote

matbintang wrote:
Has anyone implimented a reliable back-up regime for their Home e-mail system on the server side?
I use rdiff-backup to backup all of my maildirs to a remote computer.
Back to top
View user's profile Send private message
echto
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 108

PostPosted: Tue Jun 27, 2006 12:08 am    Post subject: Re: imap error Reply with quote

/etc/courier/authlib/authdaemonrc needs to be like this.

authmodulelist="authshadow authpam"


8)


fuzz wrote:
i'm getting
Code:
ERROR: Connection dropped by IMAP server.


my configs are

postfix/main.cf
Code:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain $mydomain
unknown_local_recipient_reject_code = 450
mynetworks_style = subnet
mynetworks = 127.0.0.0/8 192.168.1.100/124
mailbox_command = /usr/bin/procmail
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.16-r1/sample
readme_directory = /usr/share/doc/postfix-2.0.16-r1/readme
default_destination_concurrency_limit = 2
alias_database = hash:/etc/mail/aliases
local_destination_concurrency_limit = 2
alias_maps = hash:/etc/mail/aliases
home_mailbox = .maildir/

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated, reject

smtpd_use_tls=yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/ssl/postfix/server.key
smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
smtpd_tls_CAfile = /etc/ssl/postfix/server.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

smtp_sasl_password_maps = hash:/etc/postfix/saslpass
smtp_sasl_security_options = noanonymous

relayhost = [smtp.gmail.com]:587


courier-imap/authdaemond.conf
Code:

AUTHDAEMOND="authdaemond.plain"


courier-imap/authdaemond.conf
Code:

authmodulelist="authpam"


etc/sasl2/smtpd.conf (had to create file. was not there)
Code:

pwcheck_method:saslauthd
mech_list: plain login


etc/conf.d/saslauthd
Code:


SASLSASL_AUTHMECH=shadow

_RIMAP_HOSTNAME=""
SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=yes

SASLAUTHD_OPTS="-a ${SASL_AUTHMECH}"hd


etc/mail/aliases
Code:

# Basic system aliases -- these MUST be present.
MAILER-DAEMON:      postmaster
postmaster:         root

# General redirections for pseudo accounts.
adm:                root
bin:                root
daemon:             root
exim:               root
lp:                 root
mail:               root
named:              root
nobody:             root
postfix:            root

# Well-known aliases -- these should be filled in!
root:           linux user name
# operator:

# Standard RFC2142 aliases
abuse:              postmaster
ftp:                root
hostmaster:         root
news:               usenet
noc:                root
security:           root
usenet:             root
uucp:               root
webmaster:          root
www:                webmaster

# trap decode to catch security attacks
# decode:           /dev/null


squirrelmail/config
Code:

General
-------
1.  Domain                 : chargednetworks.com
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail

IMAP Settings
--------------
4.  IMAP Server            : localhost
5.  IMAP Port              : 993
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : true
8.  Server software        : courier
9.  Delimiter              : detect


var/log/messages
Code:

Mar 25 02:05:12 fuzzserv imapd-ssl: Connection, ip=[::ffff:127.0.0.1]
Mar 25 02:05:13 fuzzserv imapd-ssl: LOGIN FAILED, user=******, ip=[::ffff:127.0.0.
1]
Mar 25 02:05:13 fuzzserv imapd-ssl: authentication error: Input/output error
Mar 25 02:05:13 fuzzserv authdaemond: failed to connect to mysql server (server=
mysql.example.com, userid=admin): Unknown MySQL server host 'mysql.example.com'
(1)


please help

*hopefully i posted all the info needed

thanks
~fuzz
Back to top
View user's profile Send private message
rosschilen
n00b
n00b


Joined: 04 Sep 2004
Posts: 15

PostPosted: Mon Jul 10, 2006 6:26 pm    Post subject: imapd not listening Reply with quote

I have setup everything in the guide successfully except imap. From what I can tell my server is not listening for imap connections. "netstat -a" produces the following output:

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:imaps                 *:*                     LISTEN
tcp        0      0 *:http                  *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ]         DGRAM                    7235   @/org/kernel/udev/udevd
unix  2      [ ACC ]     STREAM     LISTENING     459076 /var/lib/courier/authdaemon/socket.tmp
unix  2      [ ACC ]     STREAM     LISTENING     13462  /var/run/cgisock
unix  3      [ ]         STREAM     CONNECTED     458740
unix  3      [ ]         STREAM     CONNECTED     458739

I have checked that courier-imap-ssl and courier-imap-authlib have started. I have rebooted. I have triple checked my config files according to this guide. I have the following /etc/courier/authlib/authdaemond.conf
Code:
AUTHDAEMOND="authdaemond.plain"

In /etc/courier/authlib/authdaemonrc
Code:
#blah blah comments
authmodulelist="authpam authshadow"
authmodulelistorig="authpam authshadow"
daemons=5
authdaemonvar=/var/lib/courier/authdaemon
DEBUG_LOGIN=0
DEFAULTOPTIONS=""
LOGGEROPTS=""

The following /etc/pam.d/imap
Code:
I'm unsure of# PAM setup for
auth       required     pam_nologin.so
auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
session    required     pam_stack.so service=system-auth

I am unsure of how to debug courier-imap, any suggestions? Also, btw I have squirrellmail up and running.
Back to top
View user's profile Send private message
bluni
n00b
n00b


Joined: 27 Jan 2006
Posts: 29

PostPosted: Wed Aug 02, 2006 5:49 am    Post subject: Reply with quote

I apologize if this has been asked before, but what is the password that is used to encrypt /etc/ssl/postfix/server.crt ?

Thunderbird is asking for it when I try to import the cert and I've given it all the passwords that could be it. Any ideas? The setup is verbatim from the howto, everything else is working perfectly.

Thanks for your help,

Brian
Back to top
View user's profile Send private message
tkhobbes
Guru
Guru


Joined: 12 Nov 2004
Posts: 367
Location: Switzerland

PostPosted: Sun Aug 13, 2006 8:06 pm    Post subject: Reply with quote

Hello

I am desperately seeking help, I have no idea what's wrong. A world update (emerge -uD world) switched the baselayout - and since then, courier-imapd-ssl won't start anymore.
Unfortunately, I have no log-files (how the heck do I have courier-imapd-ssl to log what's wrong?) - all I can say is that on starting up the service /etc/init.d/courier-imapd-ssl, I get a [!!] instead of an [ok] - no further error-messages...

Any idea what I could do?

I already skipped through many conf-files, and also re-emerged both courier-authlib and courier-imap - did nothing... :(

thomas
_________________
My systems and some screenshots: http://www.hobbes.ch/techie/
My Gentoo client installation page: http://www.hobbes.ch/techie/gentoo-client/
My Gentoo Server installation: http://www.hobbes.ch/category/server
Back to top
View user's profile Send private message
robfish
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2002
Posts: 137
Location: New Zealand

PostPosted: Sun Aug 13, 2006 8:31 pm    Post subject: Reply with quote

I had the same problem but then found...
https://forums.gentoo.org/viewtopic-t-488476-highlight-courierimapd.html

(I went back to the previous version of baselayout)
_________________
RobFish
Back to top
View user's profile Send private message
tkhobbes
Guru
Guru


Joined: 12 Nov 2004
Posts: 367
Location: Switzerland

PostPosted: Sun Aug 13, 2006 9:02 pm    Post subject: Reply with quote

Wow, thanks man! :)

The post says you can update to the latest courier-imap (~x86) which is what I did - and it works again!

:D

so long
thomas
_________________
My systems and some screenshots: http://www.hobbes.ch/techie/
My Gentoo client installation page: http://www.hobbes.ch/techie/gentoo-client/
My Gentoo Server installation: http://www.hobbes.ch/category/server
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Mon Aug 14, 2006 7:25 am    Post subject: Reply with quote

Hello ALL !!!
I hope this suggestions can help to anyone who get "Input/output error!" with courier-imap or other error.
if you get this stupid non-infomative message try this:
1. DOUBLE check your conf for typos. For example, all paths to mysql socket ( I loss _hours_ before found my "typo" because after I got non-working conf from official gentoo howto I tried to use other "useful" links and there was wrong path to mysql socket)
2. Use strace utility to attach to process and save the log to file (-o option). Then grep this logs for "Access denied" or "No such file" keywords and you will solve wrong permissions and path.
3. I found TONS of references for "Input/output error!" without solution and after wasting few (!!!) days, probably I found bug in "make install" of courier-imap - wrong permissions to /var/lib/courier/authdaemon/ dir. This could help you:
Code:
cd /var/lib/courier/authdaemon/
chmod 777 ..
chmod 777 .


sorry for my really bad english, I hope this will help to make working mail server!
GOOD LUCK !!!


Last edited by fank on Fri Feb 23, 2007 12:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
RS2
n00b
n00b


Joined: 05 Sep 2006
Posts: 4

PostPosted: Tue Sep 05, 2006 2:54 pm    Post subject: Bogofilter: small correction Reply with quote

Hello Beowulf, hello Chris Smith

thanks a lot for the great work.

Because of a change in Bogofilter in release 0.16 I searched for a problem that doesn't realy exist.
It just costs me some time to realize, that it isn't a ownership-problem or anything else.

The problem:
all the time, the cronjobs runs bogotrainer, I saw the message
Quote:
bin/bogotrainer
Bogofilter directory found
Databases NOT found. Generating...
Generating databases:

It seemed, that he creates and creates ....

In Chapter 9 Bogofilter Mail Filtering Solution Underchapter
9.1 Bogofilter Instructions
Step 4 is the script ~/Bin/bogotrainer
the lines
Code:
   if os.path.isfile(os.path.join(bogodir, "spamlist.db")):
       print "Databases found"

aren't correct anymore. The goodlist and spamlist are now the wordlist.db

So I would suggest to alter the script in
Code:
#! /usr/bin/python
 import os, os.path
 
 #Configuration entries. Not much ATM. More if needed.
 bogodir = "~/.bogofilter/"
 maildir = "~/.maildir/"
 
 #Leave everything below here unless you want to do some hacking :)
 needdbs = 0
 bogodir = os.path.expanduser(bogodir)
 maildir = os.path.expanduser(maildir)
 
 def cleanhamdirs(dir):
    #We don't want Spam in the hamdirs :)
    if dir[len(maildir):len(maildir) + 5] == ".Spam":
       return 0
    #The maildirs of the inbox, must be handled especially
    if dir[len(maildir):len(maildir) + 3] == "cur":
       return 0
    if dir[len(maildir):len(maildir) + 3] == "tmp":
       return 0
    if dir[len(maildir):len(maildir) + 3] == "new":
       return 0
    #If you threw it away, you obviously don't want it :)
    if dir[len(maildir):len(maildir) + 6] == ".Trash":
       return 0
    return 1
 
 if os.path.isdir(bogodir):
    print "Bogofilter directory found"
    if os.path.isfile(os.path.join(bogodir, "wordlist.db")):
       print "Databases found"
    else:
       print "Databases NOT found. Generating..."
       needdbs = 1
 else:
    print "Bogofilter directory NOT found. Generating..."
    needdbs = 1
 
 if needdbs:
    print "Generating databases:"
    print "Regestering spam messages from", os.path.join(maildir,".Spam/cur")
    spamlist = os.listdir(os.path.join(maildir,".Spam/cur"))
    for spam in spamlist:
       spampath = os.path.join(maildir,".Spam/cur/",spam)
       print "- ", spampath
       os.system("bogofilter -s < " + spampath)
    if os.path.isdir(os.path.join(maildir, ".Ham")):
       #If a specific .Ham dir exists, use that.
       print "Regestering ham messages from", os.path.join(maildir,".Ham/cur")
       hamlist = os.listdir(os.path.join(maildir,".Ham/cur"))
       for ham in hamlist:
          hampath = os.path.join(maildir,".Ham/cur",ham)
          print "- ", hampath
          os.system("bogofilter -n < " + hampath)
    else:
       #Or else, use everything that isn't spam!
       print "Registering ham messages from", os.path.join(maildir,"cur")
       hamlist = os.listdir(os.path.join(maildir,"cur"))
       for ham in hamlist:
          hampath = os.path.join(maildir,"cur",ham)
          print "- ", hampath
          os.system("bogofilter -n < " + hampath)
       maildirs = [os.path.join(maildir,dir) for dir in os.listdir(maildir)]
       maildirs = filter(os.path.isdir, maildirs)
       maildirs = filter(cleanhamdirs, maildirs)
       for dir in maildirs:
          print "Regestering ham messages from", dir
          hamlist = os.listdir(os.path.join(dir,"cur"))
          for ham in hamlist:
             hampath = os.path.join(dir,"cur",ham)
             print "- ", hampath
             os.system("bogofilter -n < " + hampath)
 
 # So, everything exists, this must be an "updating run", easy!
 # First, correct misdetected ham from the false-positives directory,
 # and move it into the inbox.
 print "Correcting ham messages from", os.path.join(maildir,".Spam.False-Positives")
 hamlist = os.listdir(os.path.join(maildir,".Spam.False-Positives/cur"))
 for ham in hamlist:
    hampath = os.path.join(maildir,".Spam.False-Positives/cur",ham)
    print "- ", hampath
    os.system("bogofilter -Sn < " + hampath)
    #Feed it back through procmail :)
    os.system("/usr/bin/procmail -d $USER < " + hampath)
    os.remove(hampath)
 
 # Now, correct misdetected spam, and put it in the Spam maildir :)
 print "Correcting spam messages from", os.path.join(maildir,".Spam.False-Negatives")
 spamlist = os.listdir(os.path.join(maildir,".Spam.False-Negatives/cur"))
 for spam in spamlist:
    spampath = os.path.join(maildir,".Spam.False-Negatives/cur",spam)
    print "- ", spampath
    os.system("bogofilter -Ns < " + spampath)
    #Don't bother procmailing it, put it in spam! :)
    os.rename(spampath, os.path.join(maildir,".Spam/cur",spam))


So thanks again to all for the great "Email System For The Home Network " - Documentation.
Back to top
View user's profile Send private message
bubbas
n00b
n00b


Joined: 29 Dec 2003
Posts: 36
Location: Germany

PostPosted: Thu Sep 07, 2006 1:41 am    Post subject: Reply with quote

@RS2

perhaps the new Bogotrainer does the job for you ;)

https://forums.gentoo.org/viewtopic.php?p=1957681#1957681
https://forums.gentoo.org/viewtopic-t-334239.html
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Nov 02, 2006 11:59 pm    Post subject: Reply with quote

I followed this post. Beowulf, if you still read this, you did a good job. thank you and to they who contributed to the smamassassin section, that program is pretty nifty if i do say so myself, which i do.

I found that it was necessary to edit the main.cf file to allow my server to accept mail from the outside world...
Code:
smtpd_client_restrictions = permit_sasl_authenticated, permit

i changed that so i could recieve mail from my online mail account that i had sent to my home email account. i could not get the mail to go through. and this line...
Code:
#smtpd_recipient_restrictions = permit_mynetworks, rejec

i put in to avoid relaying but commented out because it didn't work. besides, as i learned from reading up on this online, the default options for relaying and the smdtpd_recipient_restrictions is quite sane, allowing only those in mynetworks, anyway.

is this not a good idea and in fact a necessary step of the setup? or is nobody trying to run this open to the outside world?
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
tkhobbes
Guru
Guru


Joined: 12 Nov 2004
Posts: 367
Location: Switzerland

PostPosted: Sat Nov 04, 2006 3:00 pm    Post subject: Reply with quote

Hi all

First, thanks beowulf for the wonderful work - I have recently reinstalled my e-mail system, and the how-to is just wonderful!

Now, what puzzles me: It seems that bogotrainer does not learn anything: I have tons of spam, but they are in the inbox, and I move them to Spam/false-negatives. After a while, they are moved to Spam, as designed, but none of my e-mails will go to the Spam folder directly... as if they were not recognized...

At first, I thought that this is because I reinstalled the whole system and thus bogotrainer being dumb and with no idea about what is spam and what not - but I have done this some weeks ago, and still, the situation has not changed...

so long
thomas
_________________
My systems and some screenshots: http://www.hobbes.ch/techie/
My Gentoo client installation page: http://www.hobbes.ch/techie/gentoo-client/
My Gentoo Server installation: http://www.hobbes.ch/category/server
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Nov 16, 2006 5:49 pm    Post subject: Reply with quote

first of all, to tkhobbes let me suggest spamassasin. I never tried bogofilter, but spam assassin now supports bayesian filtering and, for the few days my network was up, it worked really well for me.

now on to my problem...

arghhh! Help!

i have set up a great home email network as directed by this guide. After it finally got all up and working, it only took me a few days to break it.

My home directory on the mail server is a nfs mounted partition on my fileserver. When my fileserver crashed it took my maildir with it, and now when i try to fetch my mail from an online account i get...

Quote:
procmail: Couldn't create or rename temp file "/home/dan/.maildir/tmp/1163264403.31958_1.davey"
fetchmail: MDA returned nonzero status 73
procmail: Couldn't create or rename temp file "/home/dan/.maildir/tmp/1163264408.31963_1.davey"
fetchmail: MDA returned nonzero status 73
procmail: Couldn't create or rename temp file "/home/dan/.maildir/tmp/1163264411.31966_1.davey"
fetchmail: MDA returned nonzero status 73
procmail: Couldn't create or rename temp file "/home/dan/.maildir/tmp/1163264415.31975_1.davey"
... [ many of the same removed ] ...
procmail: Couldn't create or rename temp file "/home/dan/.maildir/tmp/1163264559.32109_1.davey"
fetchmail: MDA returned nonzero status 73
procmail: Couldn't create or rename temp file "/home/dan/.maildir/tmp/1163264563.32112_1.davey"
fetchmail: MDA returned nonzero status 73
procmail: Couldn't create or rename temp file "/home/dan/.maildir/tmp/1163264566.32115_1.davey"


My theory was that it was a file locking problem or something, but i am not certain where the lock file would be stored or how to fix the problem. I was also interested to get this message:
Code:
davey tmp # touch 1163264455.32019_1.davey
touch: cannot touch `1163264455.32019_1.davey': Input/output error

what's going on? Any suggestions? Please help, this has now baffled me for a fortnight!
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Wed Dec 13, 2006 11:59 am    Post subject: Reply with quote

Hello just set this up on local box but get following error when recieving mail:

Code:

Dec 13 11:29:06 smaartmail postfix/qmgr[4700]: 83D436B62D: to=<root@smaartmail.smaart.co.uk>, orig_to=<root>, relay=none, delay=29880, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)


any ideas?

cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Wed Dec 13, 2006 11:12 pm    Post subject: Reply with quote

Quote:
(delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)


now why would that be? Are you running smtp of some kind on localhost? Are you running a firewall of some kind? Do you have a 'lo' network device?
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 24, 25, 26, 27  Next
Page 25 of 27

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum