Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Email System For The Home Network - Version 2.1

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
667 posts
  • Page 19 of 27
    • Jump to page:
  • Previous
  • 1
  • …
  • 17
  • 18
  • 19
  • 20
  • 21
  • …
  • 27
  • Next
Author
Message
davidl
n00b
n00b
Posts: 16
Joined: Mon Mar 31, 2003 2:54 pm
Location: Newcastle, England

  • Quote

Post by davidl » Thu Jun 03, 2004 8:37 pm

Well it's official. Ths guide is absolutely fantastic!

I set this up with very little effort at all. The only problem I had was getting saslauthd to start because I had to comment the last four lines of /etc/conf.d/saslauthd, but it is all there and working now. For looking at the various options for procmail, I looked at this guide:

http://www.spambouncer.org/proctut.shtml

Editing of .myemail etc. is very useful for filtering.

Cyrus-sasl wouldn't compile without kerberos support, but since I'm using kerberos for various things and everything works regardless I don't care.

If you just want pop3 support as I did, basically do everything in the guide for courier-imapd-ssl, but replace imapd with pop3d. That easy! Generate your certificates, start the server everything the same, except replce imapd with pop3d.

Couldn't really believe how easy this was.
Top
geforce
l33t
l33t
User avatar
Posts: 654
Joined: Mon Dec 29, 2003 4:36 pm
Location: Canada

  • Quote

Post by geforce » Fri Jun 04, 2004 3:02 am

There is something I don't understand:


1) I can't connect with other users than ROOT: if I connect , with squirrelmail, with user geforce I get:
ERROR:
ERROR : Connection dropped by imap-server.
2) I can't send E-mails:
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
http://tilde.club/~geforce/
Top
vlack
n00b
n00b
User avatar
Posts: 59
Joined: Tue Apr 01, 2003 6:53 pm
Location: Austin, TX

  • Quote

Post by vlack » Sat Jun 05, 2004 6:41 pm

ignore me.
Top
geforce
l33t
l33t
User avatar
Posts: 654
Joined: Mon Dec 29, 2003 4:36 pm
Location: Canada

  • Quote

Post by geforce » Sat Jun 05, 2004 9:04 pm

I do as you said, but i get:
Transaction failed
Server replied: 554 <root@geforce.no-ip.org>: Relay access denied
http://tilde.club/~geforce/
Top
Hagar
Guru
Guru
Posts: 445
Joined: Tue Feb 11, 2003 6:36 pm
Contact:
Contact Hagar
Website

  • Quote

Post by Hagar » Sun Jun 06, 2004 6:32 pm

I'm a little confused about what %T is replaced with in the crontab.
I have the same problem BlinkEye has but I also recieve delivery errors when I remove the -m flag from the crontab.

/usr/bin/fetchmail -a -v -m "/usr/bin/procmail -d \%T"

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)
...
In the console /usr/bin/fetchmail -a -v -m "/usr/bin/procmail -d %T" works fine (without the slash)
With the slash I get the same error as with the crontab.
I'm using vixie-cron and /bin/sh as cron shell, is a different escape method needed ?

/usr/bin/fetchmail -a -v

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'
...
That last one is even more confusing as I am able to send mail locally from the console with "mailx -s Subject harm" without any problems.
Top
oopstu
n00b
n00b
User avatar
Posts: 20
Joined: Sun Jun 22, 2003 3:20 am
Location: VA

Bad Certificates

  • Quote

Post by oopstu » Mon Jun 07, 2004 4:28 pm

Hi,

Great guide. Things are mostly working. I'm having the same 'bad certificate' Thunderbird problem that many other folks are having or had. I read through all 19 pages of the topic looking for a succint answer or explanation of the problem and a resolution but couldn't find one.

Could someone explain to me how to generate a new certificate for the server such that Thunderbird and the server can negotiate the TLS transaction and send mail?

thanks, stu
Top
Tuinslak
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 129
Joined: Wed Nov 26, 2003 7:02 pm
Location: Belgium
Contact:
Contact Tuinslak
Website

  • Quote

Post by Tuinslak » Fri Jun 18, 2004 11:51 am

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                                                                                 [ !! ]
any idea what's wrong ?

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   
Tuinslak
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Fri Jun 18, 2004 12:31 pm

gnah. i had that too and forgot how i solved it. i've googled for it and probably found an answer. i'll do an updatedb on my memory and hopefully i remember what the cause was :wink:.
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Top
Tuinslak
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 129
Joined: Wed Nov 26, 2003 7:02 pm
Location: Belgium
Contact:
Contact Tuinslak
Website

  • Quote

Post by Tuinslak » Fri Jun 18, 2004 12:39 pm

hehe, ok, i'm searching google... but ..
Tuinslak
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Fri Jun 18, 2004 12:49 pm

you could post your configs and i'll compare them to mine or you could pm me and i'd send mine to you or ...
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Top
Tuinslak
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 129
Joined: Wed Nov 26, 2003 7:02 pm
Location: Belgium
Contact:
Contact Tuinslak
Website

  • Quote

Post by Tuinslak » Fri Jun 18, 2004 1:59 pm

this should be the configs:
http://tuinslak.oom-killer.org/config/authdaemonrc
http://tuinslak.oom-killer.org/config/authdaemond.conf
(only imap stuff?!)


and it's possible in this howto, not to enable all authentication for smtp and so on (don't need it at home)?
Tuinslak
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Fri Jun 18, 2004 2:38 pm

looks good to me. i think i remember what the problem was: the certificates - have you created and placed them in /etc/postfix/ ?
here's a really good guid to postfix and smtp authentication. it takes some time but if you do it the way they suggest it works afterwards:
http://postfix.state-of-mind.de/patrick ... ation.html
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Top
Tuinslak
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 129
Joined: Wed Nov 26, 2003 7:02 pm
Location: Belgium
Contact:
Contact Tuinslak
Website

  • Quote

Post by Tuinslak » Fri Jun 18, 2004 3:04 pm

ok, thanks, i'll try that
Last edited by Tuinslak on Sat Jun 26, 2004 10:50 am, edited 1 time in total.
Tuinslak
Top
Magnetron
n00b
n00b
User avatar
Posts: 12
Joined: Sat May 22, 2004 6:05 pm
Location: USSR
Contact:
Contact Magnetron
Website

  • Quote

Post by Magnetron » Sat Jun 26, 2004 10:02 am

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.
Where I put this code line?!?!?!?!?!?! :oops: :oops: :oops:
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Sat Jun 26, 2004 11:11 am

in your user's crontab file which you open with

Code: Select all

crontab -e 
this won't probably work, which means your user isn't in the cron group. so, do the following (as root):

Code: Select all

vi /etc/group
or

Code: Select all

nano /etc/group
and add your user to the cron line so the cron line looks like this:

Code: Select all

cron:x:16:cron,*your_user_name*
after that you may add user specific crontab entries with the above mentioned command
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Top
Magnetron
n00b
n00b
User avatar
Posts: 12
Joined: Sat May 22, 2004 6:05 pm
Location: USSR
Contact:
Contact Magnetron
Website

  • Quote

Post by Magnetron » Sat Jun 26, 2004 12:02 pm

Thanks, but I have another problem.

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)
Any ideas?
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Sat Jun 26, 2004 12:08 pm

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 
i get the same errors with your crontabe entry. i just use

Code: Select all

*/2 * * * * /usr/bin/fetchmail -s
wich works fine (my setup: fetchmail, procmail, amavisd-new, postfix and spamassassin).
about

Code: 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)
could it be that you're already logged in - some accounts won't let you login twice so check if that's the problem
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Top
Magnetron
n00b
n00b
User avatar
Posts: 12
Joined: Sat May 22, 2004 6:05 pm
Location: USSR
Contact:
Contact Magnetron
Website

  • Quote

Post by Magnetron » Sat Jun 26, 2004 1:05 pm

Your code

Code: Select all

*/2 * * * * /usr/bin/fetchmail -s
good for me, it's work.
Thanks.
Top
massimo
Veteran
Veteran
User avatar
Posts: 1226
Joined: Sun Jun 22, 2003 5:56 pm

  • Quote

Post by massimo » Fri Jul 02, 2004 12:05 pm

I followed the HowTo and now I'm not sure about the IMAP thing because I've never used it before but I like the idea of it. So I want to make sure, that I didn't miss something: I fetch my emails with fetchmail and procmail passes them on in my maildir directory in the /new subfolder or whatever I specified in .procmailrc? I use KMail, so I grab the new emails and filter them into the created IMAP directories?
Where are the emails in my IMAP folder stored physically on the server? So I could make a backup of them? I noticed that there is one fixed folder "Incoming" and I can only create subfolders in this one on the IMAP server, right?

Thanks in advance for all your help.
Hello 911? How are you?
Top
massimo
Veteran
Veteran
User avatar
Posts: 1226
Joined: Sun Jun 22, 2003 5:56 pm

  • Quote

Post by massimo » Sat Jul 03, 2004 6:43 am

Sorry for the previous message, I already found the solutions for my questions. I didn't have the default folder ~/.maildir for my emails, and since IMAP looks there... So I moved all my Mails to ~/.maildir and now it's working.

Thanks for the excellent tutorial.
Hello 911? How are you?
Top
Tazok
Guru
Guru
Posts: 310
Joined: Sat Oct 25, 2003 10:59 am

  • Quote

Post by Tazok » Sat Jul 03, 2004 9:27 am

I followed this guide to build an home email system, but now I'm stuck.
If I try to login with mutt or thunderbird, I am getting this error:

Code: Select all

Unable to open this mailbox.
If I try to login in with squirrelmail, I am getting this:

Code: Select all

Error connecting to IMAP server: localhost.
111 : Connection refused
This is my main.cf : [...]

Any Ideas?

EDIT: I took another attempt to follow the guide, copied and pasted all settings, but I'm still having the same problem ...
What else can I try?
Top
lurid
Guru
Guru
User avatar
Posts: 595
Joined: Wed Mar 12, 2003 4:36 am
Location: Florida

  • Quote

Post by lurid » Mon Jul 05, 2004 11:15 pm

I hate MTA's. I really do. The people who came up with this concept should be drug out into the street and shot. Yes, I understand the UNIX philosophy is to have one program do one thing and have it do it well, but good god, how many programs do you need just to get your frickin email?!

After *hours* of editing text file after text file, I've given up. I'm way too burnt out to even try this guide, though maybe the next time I feel like stabbing myself in the eye I'll try to set up an MTA instead, and use this guide. I almost, *almost*, at this point, understand what Windows users mean when they say UNIX/Linux is needlessly complex.

I just wanted SpamAssasin. Instead I got a migrane. Sometimes UNIX is teh sux. :cry:
Go find a cheerleader and saw her legs off. - Nny
Top
iljohnson
n00b
n00b
User avatar
Posts: 24
Joined: Thu Jun 03, 2004 12:33 am
Location: Barossa Valley, Australia

Unexpected SSL conection shutdown

  • Quote

Post by iljohnson » Tue Jul 06, 2004 11:52 am

Hi,

not having much luck here, doc seems very good though.

I have a single server at this stage and a dialup connection with a fixed Ip, in the future I want to use NAT to extend my network behind the server.

My internal eth0 address is 172.0.0.2, external ppp0 203.102.191.24 and localhost 127.0.0.1

Hots name tux, domain name thejohnsonsplace.org

I am just trying to send mail at the moment from the server (127.0.0.1) but I keep getting the following SSL error.

: 0020 85 08 84 01 cf bf a9 2a|3b a2 37 .......* ;.7
Jul 6 20:51:39 tux postfix/smtpd[11631]: SSL_accept:SSLv3 flush data
Jul 6 20:51:39 tux postfix/smtpd[11631]: TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Jul 6 20:51:39 tux postfix/smtpd[11631]: disconnect from localhost[127.0.0.1]
Jul 6 20:52:00 tux CRON[11635]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jul 6 20:52:14 tux imapd-ssl: Connection, ip=[127.0.0.1]
Jul 6 20:52:14 tux imapd-ssl: Unexpected SSL connection shutdown.
Jul 6 20:52:35 tux imapd-ssl: Connection, ip=[127.0.0.1]
Jul 6 20:52:35 tux imapd-ssl: LOGIN, user=iljohnson, ip=[127.0.0.1], protocol=IMAP
Jul 6 20:52:39 tux imapd-ssl: Unexpected SSL connection shutdown.
Jul 6 20:52:39 tux imapd-ssl: DISCONNECTED, user=iljohnson, ip=[127.0.0.1], headers=0, body=0
Jul 6 20:52:46 tux imapd-ssl: Connection, ip=[127.0.0.1]
Jul 6 20:52:46 tux imapd-ssl: LOGIN, user=iljohnson, ip=[127.0.0.1], protocol=IMAP
Jul 6 20:52:49 tux imapd-ssl: Unexpected SSL connection shutdown.
Jul 6 20:52:49 tux imapd-ssl: DISCONNECTED, user=iljohnson, ip=[127.0.0.1], headers=0, body=0
Jul 6 20:52:55 tux imapd-ssl: Connection, ip=[127.0.0.1]
Jul 6 20:52:55 tux imapd-ssl: LOGIN, user=iljohnson, ip=[127.0.0.1], protoc

I have been looking for an answer, checked my config twice and found a few problems but nothing to fix this.

I have a second problem in relation to the setup with Kmail in that it fails to open the inbox of the IMAP box, I get a server error.

any help appreciated

Ian
Top
robertnn
n00b
n00b
Posts: 50
Joined: Mon Oct 27, 2003 9:02 pm
Location: Vienna

procmail seems not to be touched

  • Quote

Post by robertnn » Thu Jul 08, 2004 11:22 am

I like the guide, though there is one problem left.

Procmail does not seem to even get started, when using via postfix.

It works fine with

/usr/bin/fetchmail -v -m /usr/bin/procmail

all mail gets sorted into the correct folder.

But the local delivery, when I send an email to myname@localhost doesn't seem to have any contact with procmail at all.

Shouldn't
mailbox_command = /usr/bin/procmail
do exactly that?

tips appreciated

btw,
needed to switch to suse at work, but it should be the same, or not?
Top
robertnn
n00b
n00b
Posts: 50
Joined: Mon Oct 27, 2003 9:02 pm
Location: Vienna

  • Quote

Post by robertnn » Thu Jul 08, 2004 12:27 pm

Just if anyone is interested: I finally got it.

The config contains a lot of commented stuff at the beginning. That's where i just uncommented the mailbox command.

Then, at the end of the file there are all of the config options again, not commented, so this always overwrote my settings.

Took me some hours, but next time I will know ...
Top
Post Reply

667 posts
  • Page 19 of 27
    • Jump to page:
  • Previous
  • 1
  • …
  • 17
  • 18
  • 19
  • 20
  • 21
  • …
  • 27
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic