View previous topic :: View next topic |
Author |
Message |
Zacay Tux's lil' helper

Joined: 23 Mar 2003 Posts: 95
|
Posted: Thu Nov 11, 2004 10:44 am Post subject: |
|
|
Why not link it?
It seems like a better solution, I never have to edit that file.. Only hosteddomains..
And I made scripts for adding domain names to my server, bind settings, apache settings, user settings and now courier settings.. All it does is add the domain name to hsoteddomains  _________________ Network script for wlan & lan
Clean your old kernels, gain alot of space
What we have to learn to do, we learn by doing... |
|
Back to top |
|
 |
GurliGebis Retired Dev


Joined: 08 Aug 2002 Posts: 509
|
Posted: Thu Nov 11, 2004 12:11 pm Post subject: |
|
|
Ahh, I see your point  _________________ Queen Rocks. |
|
Back to top |
|
 |
slougi Apprentice

Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Fri Jan 21, 2005 5:21 pm Post subject: |
|
|
I am unable to connect to courier from outside my local network... I get a 550 error. I am also unable to send mail. Locally everything works.
I opened port 25 in my firewall.
Anything else that should be done? |
|
Back to top |
|
 |
GurliGebis Retired Dev


Joined: 08 Aug 2002 Posts: 509
|
Posted: Fri Jan 21, 2005 5:24 pm Post subject: |
|
|
slougi wrote: | I am unable to connect to courier from outside my local network... I get a 550 error. I am also unable to send mail. Locally everything works.
I opened port 25 in my firewall.
Anything else that should be done? |
What does the error say? _________________ Queen Rocks. |
|
Back to top |
|
 |
slougi Apprentice

Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Fri Jan 21, 2005 5:33 pm Post subject: |
|
|
GurliGebis wrote: | slougi wrote: | I am unable to connect to courier from outside my local network... I get a 550 error. I am also unable to send mail. Locally everything works.
I opened port 25 in my firewall.
Anything else that should be done? |
What does the error say? |
Whoops sorry. I get a 550 error when trying to send mail to a user from outside; e.g. from google mail
Code: |
PERM_FAILURE: SMTP Error (state 10): 550 5.7.1 Invalid recipient: '<user>@<foo>.com' |
(I edited out the username and domain.)
When trying to connect to the imap server from outside the local network using Outlook Express (yeah yeah I know it sucks, just for testing) it just says the connection to the server failed.
Sending mail locally to local users works, and checking mail inside the local network also works. So I think I need to open some more ports or something similar. |
|
Back to top |
|
 |
riposte n00b

Joined: 17 Nov 2003 Posts: 69 Location: New Zealand
|
Posted: Sat Jan 22, 2005 3:01 am Post subject: |
|
|
I think you need port 143 for imap and 110 for pop3 connections. |
|
Back to top |
|
 |
shadowteller n00b

Joined: 01 Oct 2004 Posts: 27 Location: Logan, UT
|
Posted: Thu Feb 10, 2005 9:46 am Post subject: Whoa!!!! ----<SOLVED>---- |
|
|
Would like to thank Redeeman for the assist on this one...it was basically a typo which I found and a bad file which he found.
Very easy to understand howto
Problem arises though...
I can send outgoing mail through external software like outlook and oe (my potential users will use these most likely) but when I try sending from mutt I don't receive mail internal or externally.
I also can't get webadmin to work at all...I get the login screen and when I login (I did use the cooly little password file and set appropriate permissions for it) I get denied. Now if I set the user from mail to apache on the password file everything works, but any changes made in webadmin crap the bed. so UMMMMM what did I hose....
~prestN
Last edited by shadowteller on Sat May 07, 2005 5:56 am; edited 1 time in total |
|
Back to top |
|
 |
smutt n00b


Joined: 23 Aug 2003 Posts: 51 Location: Utrecht, Netherlands
|
Posted: Thu Feb 17, 2005 4:46 pm Post subject: |
|
|
Does anyone know how to restrict imaptcpd to only accept connections from localhost? I'm running both courier imapd and imapd-ssl and I only want to use imapd for Squirrelmail which is running on the same box. I want to force all remote IMAP users to use imapd-ssl. Any help would be appreciated. Thanks in advance.
--Smutt |
|
Back to top |
|
 |
shadowteller n00b

Joined: 01 Oct 2004 Posts: 27 Location: Logan, UT
|
Posted: Tue Feb 22, 2005 2:15 am Post subject: |
|
|
smutt wrote: | Does anyone know how to restrict imaptcpd to only accept connections from localhost? I'm running both courier imapd and imapd-ssl and I only want to use imapd for Squirrelmail which is running on the same box. I want to force all remote IMAP users to use imapd-ssl. Any help would be appreciated. Thanks in advance.
--Smutt |
You can block the incoming ports that you don't want to use.
I used vhosts and set up a mail.mydomain.com entry with a virtualhost *:993 for that subdomain. Then you set squirrel mail up to only ;isten on that domain and said port...you can disable all other ports in the .conf for SM.
Hope that helps a bit. |
|
Back to top |
|
 |
busa n00b


Joined: 17 Mar 2004 Posts: 9
|
Posted: Mon Feb 28, 2005 7:33 pm Post subject: |
|
|
Hallo @ all
fist of all: thanks a lot for this howto. It's just perfect!
But, im still having a question:
SpamAssassin and Antivir ar working. But if a mail is recognised as Spam, my virusscanners are not checking it anymore. It's delivered without a virus-check.
Does anybody know this problem?
Thanks for your tips
busa _________________ My System:
IBM T40p
INTEL Centrino 1.6 GHz
40 GB HD
512 MB RAM |
|
Back to top |
|
 |
BlinkEye Veteran

Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Mon Feb 28, 2005 11:45 pm Post subject: |
|
|
i guess the problem is not amavisd-new but fetchmail. check your config (or crontab entries) for fetchmail. if you use the following
Code: | */10 * * * * /usr/bin/fetchmail -a -s -m "/usr/bin/procmail -d \%T" |
your fetched mail will not be handed to postfix as per default but to procmail and hence bypass amavisd-new.
use
Code: | */10 * * * * /usr/bin/fetchmail -a -s" |
instead. _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick |
|
Back to top |
|
 |
cprior n00b

Joined: 03 Jun 2004 Posts: 57 Location: #gentoo ;)
|
Posted: Sat Mar 05, 2005 1:15 pm Post subject: |
|
|
I finally managed to get courier running, and want to share issues as per march 2005:
In /var/lib/courier you should see sth like:
Code: | ls /var/lib/courier
allfilters calendar faxtmp msgq sqwebmail.sock track
authdaemon couriersslcache filters msgs tmp webmail-logincache |
If you are missing msgs or other folders, see bug https://bugs.gentoo.org/show_bug.cgi?id=82286 or emerge =mail-mta/courier-0.49.0
A test if authdaemon is working and local mail set up, use on our Gentoo system sth. like
Code: | "To: root" | /usr/sbin/sendmail |
A nice resource for courier is http://perlstalker.amigo.net/courier/ , the author runs a cluster of courier servers with Gentoo as load balancer. The FAQ adress 2 Gentoo specific problems (but none should apply to you if you followed redeemans howto).
Autlib's config moved to /etc/courier/authlib, if you create files in /etc/courier you will see no changes
This also effects the webadmin module which will not work for "Password authentication modules". |
|
Back to top |
|
 |
Nimo Tux's lil' helper

Joined: 23 Nov 2003 Posts: 111
|
Posted: Fri Mar 18, 2005 6:00 pm Post subject: |
|
|
How to get this guide working with bogofilter and procmail? _________________ //Nimo |
|
Back to top |
|
 |
shadowteller n00b

Joined: 01 Oct 2004 Posts: 27 Location: Logan, UT
|
Posted: Sat Mar 19, 2005 9:23 pm Post subject: |
|
|
cprior wrote: | I finally managed to get courier running, and want to share issues as per march 2005:
In /var/lib/courier you should see sth like:
Code: | ls /var/lib/courier
allfilters calendar faxtmp msgq sqwebmail.sock track
authdaemon couriersslcache filters msgs tmp webmail-logincache |
If you are missing msgs or other folders, see bug https://bugs.gentoo.org/show_bug.cgi?id=82286 or emerge =mail-mta/courier-0.49.0
A test if authdaemon is working and local mail set up, use on our Gentoo system sth. like
Code: | "To: root" | /usr/sbin/sendmail |
A nice resource for courier is http://perlstalker.amigo.net/courier/ , the author runs a cluster of courier servers with Gentoo as load balancer. The FAQ adress 2 Gentoo specific problems (but none should apply to you if you followed redeemans howto).
Autlib's config moved to /etc/courier/authlib, if you create files in /etc/courier you will see no changes
This also effects the webadmin module which will not work for "Password authentication modules". |
I just can't seem to figure out why I can't get courier to work. I had working once before and had to blow the system away cause a partion issue. And I decided to recompile the stage 1 with new cpus and memory. But now things don't work.
Buhaha can't connect to anything...can't get squirrelmail or sqwebmail to work...hmmmm argghhhhh
~prestN |
|
Back to top |
|
 |
marky9074 Apprentice

Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Fri Apr 15, 2005 6:06 am Post subject: |
|
|
I am progressing through the production mail server howto...but...
Configuring courier
edit /etc/courier/authmysqlrc (This file doesnt exist!)
edit /etc/courier/authdaemonrc (This files doesnt exist!)
edit /etc/courier/aliases/system
edit /etc/courier/hosteddomains (This files doesnt exist!)
edit /etc/courier/smtpaccess/default
Now I can create this files and wing it. But say the authdaemnonrc refers to a part of the file, so assuming that it is actually there in the first place.
Have you got these files?
Mark |
|
Back to top |
|
 |
biatch0 n00b

Joined: 25 May 2004 Posts: 40
|
Posted: Fri Apr 15, 2005 7:30 am Post subject: |
|
|
In the latest portage tree, authdaemonrc is in /etc/courier/authlib/authdaemonrc |
|
Back to top |
|
 |
marky9074 Apprentice

Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Fri Apr 15, 2005 8:35 am Post subject: |
|
|
...updating portage....there wasnt an authlib directory for 0.48.1 which is the latest usable for Sparc... |
|
Back to top |
|
 |
marky9074 Apprentice

Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Fri Apr 15, 2005 9:22 am Post subject: |
|
|
I've emerged portage, unmerged and emerged courier and still no files and no authlib directory..... |
|
Back to top |
|
 |
marky9074 Apprentice

Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Fri Apr 15, 2005 11:43 am Post subject: |
|
|
I had to emerge net-libs/courier-authlib again (even though it said it was already installed) and it all appeared! |
|
Back to top |
|
 |
biatch0 n00b

Joined: 25 May 2004 Posts: 40
|
Posted: Mon Apr 18, 2005 4:11 am Post subject: |
|
|
If that happened, you probably emerged courier-imap before vpopmail... it needs to be vpopmail, courier-imap otherwise authdaemonrc (and the other missing friends) aren't created. |
|
Back to top |
|
 |
marky9074 Apprentice

Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Tue Apr 19, 2005 2:19 pm Post subject: |
|
|
I had some more problems, my router's DNS was causing errors with outgoing mail, it was saying DNS error - domain does not exist. Once this was disabled it all worked OK for outgoing mail...
Mark
Last edited by marky9074 on Mon Apr 25, 2005 2:04 am; edited 2 times in total |
|
Back to top |
|
 |
woZa Guru


Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Sat Apr 23, 2005 7:39 pm Post subject: |
|
|
Thanks for this guide... Got Courier up and running after a bit of messing with the database side of things. I suggest to all who are having problems logging on (as I was) to delete your "courier" database and go through the steps again. Very carefully!
3rd time lucky for me... _________________ A few months struggling with gentoo is better than a lifetime struggling with windoze! |
|
Back to top |
|
 |
marky9074 Apprentice

Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Tue Apr 26, 2005 12:43 pm Post subject: |
|
|
Zacay wrote: | Thanx.. I didn't have any domain name file in esmtpacceptmailfor.dir
I did this
Code: |
izabelle esmtpacceptmailfor.dir # ln -s /etc/courier/hosteddomains hosteddomains
izabelle esmtpacceptmailfor.dir # makeacceptmailfor
izabelle esmtpacceptmailfor.dir # makehosteddomains
izabelle esmtpacceptmailfor.dir # /etc/init.d/courier restart
|
|
I think this should be added to the main how to.....
I added another domain, followed the instructions, but got a relaying error, as soon I did the above it worked fine....
Mark |
|
Back to top |
|
 |
marky9074 Apprentice

Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Wed Apr 27, 2005 11:28 am Post subject: |
|
|
To get the webmail working using this guide, you need to point to the following (replacing localhost with your servername):
http://localhost/courier/webmail
Or copy the webmail to the cgi-bin directory and:
http://localhost/cgi-bin/webmail
I could only get webadmin working using unsecureok |
|
Back to top |
|
 |
woZa Guru


Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Thu Apr 28, 2005 2:25 pm Post subject: |
|
|
I have run into a few issues with this setup... Mainly that sending mail to certain addresses gets bounced as spam. Seems to be only SORBS servers that bounce the mail because I have a dynamic IP.
So is there a way to get courier to check the destination address to see if it is local or not. If it's local then send as normal, if not local the send using my isp's smtp server? If the mail client just uses the isp's smtp server then local mail will still get delivered via the net and back rather than never leaving the local network... _________________ A few months struggling with gentoo is better than a lifetime struggling with windoze! |
|
Back to top |
|
 |
|