Re: [courier-users] Courier Imap and Active Directory authentication.
Nico Alberti wrote: That string MUST BE in /etc/openldap/ldap.conf to avoid anonymous binds when chasing referrals (without it authdaemond.ldap will not authenticate): REFERRALS 0 I don't have anything but openldap-client installed, so no ldap.conf. I thought I did not need it (no referrals, as my data are on the AD server only). In this case should I have to install openLDAP on the Linux box too? This file contains default settings for all ldap clients. authdaemond.ldap is ldap client too. I don't know which is your linux distribution, but I use RedHat Enterprise Linux 3 ES and that config was from opeldap package: # rpm -qf /etc/openldap/ldap.conf openldap-2.0.27-11 I think you must have the same package too. -- System Administrator of Matrix Network Solutions (KSP2-RIPE) --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Re: RFC 2047 charset displayed in the reply screen
Sam Varshavchik wrote: I'm using sqwebmail 4.0.5, and I've noticed that if I reply to an email where the sender's name has been encoded according to RFC 2047, then the character set of the encoding shows up before the sender's name in the reply screen. I've created a screenshot for you to have a look at: http://anand.org/webmail.jpg Is this intentional, or a bug that needs fixing? Yes, and no. Character sets are meant to be shown in this fashion, in some circumstances. It remans to be seen whether this should happen in this specific instance. Ok, the header looks like this: From: =?iso-8859-1?q?Jean=20Swallow?= [EMAIL PROTECTED] I've deliberately left out the domain part to stop the address being harvested. So what is the reason for showing the character set in this case? A few possible reasons are the browser using some character set other than iso-8859-1, or utf-8; or the --disable-unicode option was used to build sqwebmail. My browser (firefox 0.8) sends: ISO-8859-1,utf-8;q=0.7,*;q=0.7 in the accept charset HTTP header. And I did *not* build sqwebmail with the --disable-unicode option. --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Avoiding '@localhost' Syntax Errors when using Fetchmail and Courier SMTP
Hi guys, I've made another step towards my email server (I'm trying to get fetchmail to talk to Courier), but have come across the problem that Courier SMTP server doesn't like a @localhost address and gives a syntax error. Having read up on this, I know it is resolved through using the smtpaddress variable to stamp on a proper RCPT TO variable. However, most of the documentation appears to be aimed at professional administrators, who would have a proper domain name. I on the other hand do not - and am finding the domain aspect problematic. I know how to stamp a 'fake' domain name onto my box using the /etc/hosts file, but this did not change anything. So far i've tried to send mail to courier using the command mail -s subject [EMAIL PROTECTED] and mail -s subject [EMAIL PROTECTED] (the machine's hostname is mail) and both come through no problems at all. However, if I add another definition to the /etc/hosts file i.e. 127.0.0.1 localhostlocalhost.localdomain -OR- 192.168.1.2mailmail.mydomain.com and use a similar mail command addressed to mail.mydomain.com or localhost.localdomain, nothing happens. My question is what domain should I tag on to the smtpaddress in my .fetchmailrc file to avoid the courier error, and what configuration files do I need to amend to implement the false domain? Any help appreciated, its my first time :) Dan Garland --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Avoiding '@localhost' Syntax Errors when using Fetchmail and Courier SMTP
On 9/07/2004, at 9:07 PM, Daniel Garland wrote: Hi guys, I've made another step towards my email server (I'm trying to get fetchmail to talk to Courier), but have come across the problem that Courier SMTP server doesn't like a @localhost address and gives a syntax error. Having read up on this, I know it is resolved through using the smtpaddress variable to stamp on a proper RCPT TO variable. However, most of the documentation appears to be aimed at professional administrators, who would have a proper domain name. I on the other hand do not - and am finding the domain aspect problematic. I know how to stamp a 'fake' domain name onto my box using the /etc/hosts file, but this did not change anything. So far i've tried to send mail to courier using the command mail -s subject [EMAIL PROTECTED] and mail -s subject [EMAIL PROTECTED] (the machine's hostname is mail) and both come through no problems at all. However, if I add another definition to the /etc/hosts file i.e. 127.0.0.1 localhostlocalhost.localdomain -OR- 192.168.1.2mailmail.mydomain.com and use a similar mail command addressed to mail.mydomain.com or localhost.localdomain, nothing happens. My question is what domain should I tag on to the smtpaddress in my .fetchmailrc file to avoid the courier error, and what configuration files do I need to amend to implement the false domain? Any help appreciated, its my first time :) Courier doesn't read /etc/hosts - you _NEED_ a DNS server. Even if you run one on localhost it's fine, but it must be from DNS. -- Phillip Hutchings [EMAIL PROTECTED] http://www.sitharus.com/ smime.p7s Description: S/MIME cryptographic signature
Re: [courier-users] Courier Imap and Active Directory authentication.
Kirill Pushkin wrote: Nico Alberti wrote: I don't have anything but openldap-client installed, so no ldap.conf. I thought I did not need it (no referrals, as my data are on the AD server only). In this case should I have to install openLDAP on the Linux box too? This file contains default settings for all ldap clients. authdaemond.ldap is ldap client too. I don't know which is your linux distribution, but I use RedHat Enterprise Linux 3 ES and that config was from opeldap package: As I said, I had only the openldap-client installed. It contains ldapsearch that can seamplessly connect to the AD ldap server without that configuration file. That's why I thought it was not necessary for courier. But perhaps authdaemond.ldap behaves differntly. I think you must have the same package too. I will try to install all the openldap package. Thank you for your help. -- Ciao Nico --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Re: RFC 2047 charset displayed in the reply screen
Sam Varshavchik wrote: I'm using sqwebmail 4.0.5, and I've noticed that if I reply to an email where the sender's name has been encoded according to RFC 2047, then the character set of the encoding shows up before the sender's name in the reply screen. I've created a screenshot for you to have a look at: http://anand.org/webmail.jpg Is this intentional, or a bug that needs fixing? Yes, and no. Character sets are meant to be shown in this fashion, in some circumstances. It remans to be seen whether this should happen in this specific instance. Ok, the header looks like this: From: =?iso-8859-1?q?Jean=20Swallow?= [EMAIL PROTECTED] I've deliberately left out the domain part to stop the address being harvested. So what is the reason for showing the character set in this case? A few possible reasons are the browser using some character set other than iso-8859-1, or utf-8; or the --disable-unicode option was used to build sqwebmail. My browser (firefox 0.8) sends: ISO-8859-1,utf-8;q=0.7,*;q=0.7 in the accept charset HTTP header. And I did *not* build sqwebmail with the --disable-unicode option. In this case the character set tag should not be necessary. So it's a bug in sqwebmail? --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Avoiding '@localhost' Syntax Errors when using Fetchmail and Courier SMTP
Been down this road. The long and short of it is this: 'localhost' is not a valid FQDN (fully-qualified domain name) because it has no domain. Also, courier doesn't use /etc/hosts (or the normal libc name resolution functions, it implements it's own), you'll just have to do delivery via Maildrop or something else like that. When I ran fetchmail, I used: mda /usr/bin/maildrop in my fetchmailrc On Fri, 9 Jul 2004, Daniel Garland wrote: Hi guys, I've made another step towards my email server (I'm trying to get fetchmail to talk to Courier), but have come across the problem that Courier SMTP server doesn't like a @localhost address and gives a syntax error. Having read up on this, I know it is resolved through using the smtpaddress variable to stamp on a proper RCPT TO variable. However, most of the documentation appears to be aimed at professional administrators, who would have a proper domain name. I on the other hand do not - and am finding the domain aspect problematic. I know how to stamp a 'fake' domain name onto my box using the /etc/hosts file, but this did not change anything. So far i've tried to send mail to courier using the command mail -s subject [EMAIL PROTECTED] and mail -s subject [EMAIL PROTECTED] (the machine's hostname is mail) and both come through no problems at all. However, if I add another definition to the /etc/hosts file i.e. 127.0.0.1 localhostlocalhost.localdomain -OR- 192.168.1.2mailmail.mydomain.com and use a similar mail command addressed to mail.mydomain.com or localhost.localdomain, nothing happens. My question is what domain should I tag on to the smtpaddress in my .fetchmailrc file to avoid the courier error, and what configuration files do I need to amend to implement the false domain? Any help appreciated, its my first time :) Dan Garland --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users -- Ensign Walnut approaches Dr. Crusher with caution... Jon Nelson [EMAIL PROTECTED] C and Python Code Gardener --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] couriermlm import/export command
On 2004-07-09, Michael Etcell wrote: If I do (and I am not sure if this is correct thing to do) Couriermlm export /path to directory/ /list.txt How do I import /list.txt? couriermlm import directory list.txt and redirect standard in-/output. -- Georg --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Courier Imap and Active Directory authentication.
Another way to do this is to install Samba 3 and use Winbindd to do your linux authentication to the AD. That way, in Courier-Imap you use PAM authentication and it will check AD through PAM and Winbindd. This is what I do for my users. It also allows for single sign-on if any of my users need linux shell accounts, say for FTP access or whatnot. Regards, Ben Madsen Nico Alberti wrote: Kirill Pushkin wrote: That string MUST BE in /etc/openldap/ldap.conf to avoid anonymous binds when chasing referrals (without it authdaemond.ldap will not authenticate): REFERRALS 0 I don't have anything but openldap-client installed, so no ldap.conf. I thought I did not need it (no referrals, as my data are on the AD server only). In this case should I have to install openLDAP on the Linux box too? Thank you for your help. --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] authmysql custom queries not working
Hi all, I am setting up a fresh courier install on a gentoo box. I'm finding that I'm getting 450 service temporarily unavailable whenever I try to send mail to the local domain. Evidently this is because something is amiss with the authmysql back end (I am using 'authpam authmysql' in authdaemon). Running authenumerate returns only the authpam entries, and none from my mysql table. Now, I've turned on logging in mysql, and apparently authdaemon is making a database connection, but not sending any query at all. What gives? I believe the problem is related to using the custom queries, which I am employing. According to the comments in the authmysqlrc, specifying these queries should override all of the earlier individual table/column- related settings in the file. Indeed, if I comment out the MYSQL_*_CLAUSE lines and fill out valid details in the preceding table/ column lines, authdaemon makes queries to mysql and authenumerate returns results. My conclusion is that something is broken with custom queries. I realise the comments say (EXPERIMENTAL), but the text goes on to suggest that they at least KIND OF work. What is the real deal here? Are they known to NOT work at all? For reference my config lines are as follows: MYSQL_SELECT_CLAUSE SELECT mailboxes.account, mailboxes.cryptpass, mailboxes.clearpass AS clearpw, usersites.uid, usersites.uid AS gid, CONCAT('/home/',usersites.user) AS home, IF('$(service)'='courier',mailboxes.defaultdelivery,mailboxes.maildir) AS defaultdelivery_maildir, NULL AS quota, mailboxes.name, '' AS options FROM mailboxes LEFT JOIN usersites ON mailboxes.user=usersites.user WHERE mailboxes.account='$(local_part)@$(domain)' MYSQL_ENUMERATE_CLAUSE SELECT mailboxes.account, usersites.uid, usersites.uid AS gid, CONCAT('/home/',usersites.user) AS home, mailboxes.maildir FROM mailboxes LEFT JOIN usersites ON mailboxes.user=usersites.user MYSQL_CHPASS_CLAUSE UPDATE mailboxes SET clearpass='$(newpass)', cryptpass='$(newpass_crypt)' WHERE account='$(local_port)@$(domain)' Help appreciated. Thanks, -ben -- Ben Kennedy, chief magician zygoat creative technical services 613-228-3392 | 1-866-466-4628 http://www.zygoat.ca --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Courier Imap and Active Directory authentication.
Well, since you're using PAM, then yes, you'd need home directories. They could be tweaked to go to strange directories, though. It won't support multiple domains (as far as I know), but I could be wrong about that as the Winbindd stuff seems to be pretty flexible. You might try messing with usernames and stuff to get a virtual domains like feel going. Mostly, though I would say stick with LDAP if you're looking for virtual domains. -Ben David Gomillion wrote: I'm very interested in this, but unsure how to go about doing this. I know what Samba is, I have downloaded Samba 3, and read about winbindd. Does it require that all users have a home directory, or can I keep using virtual users in Courier? I guess if we're using PAM, then users' mail would have to be in /home/someusername/Maildir... Unless I tweaked the $HOME when creating accounts. How do you handle this? Will it support multiple domains? Thanks, David Gomillion -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Madsen Sent: Friday, July 09, 2004 11:03 AM To: [EMAIL PROTECTED] Subject: Re: [courier-users] Courier Imap and Active Directory authentication. Another way to do this is to install Samba 3 and use Winbindd to do your linux authentication to the AD. That way, in Courier-Imap you use PAM authentication and it will check AD through PAM and Winbindd. This is what I do for my users. It also allows for single sign-on if any of my users need linux shell accounts, say for FTP access or whatnot. Regards, Ben Madsen --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Outlook 2003 client config for Courier-IMAP
Here is an error I am getting when I setup my Outlook 2003 client for my IMAP server... Your message did not reach some or all of the intended recipients. Subject: test Sent: 7/9/2004 6:28 PM The following recipient(s) could not be reached: '[EMAIL PROTECTED](dot)com' on 7/9/2004 6:28 PM 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) [(dot) is actually .] I have read in a FAQ that mentioned that this can be avoided by putting all users IP addresses into the rcpthosts to prevent this error... But I was thinking there has to be an easier way of doing this other than becoming and open relay... Please help... Thanks wm --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Outlook 2003 client config for Courier-IMAP
Bill Mounsey wrote: Here is an error I am getting when I setup my Outlook 2003 client for my IMAP server... this is an error from sending mail (your smtp server) Your message did not reach some or all of the intended recipients. Subject: test Sent: 7/9/2004 6:28 PM The following recipient(s) could not be reached: '[EMAIL PROTECTED](dot)com' on 7/9/2004 6:28 PM 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) [(dot) is actually .] I have read in a FAQ that mentioned that this can be avoided by putting all users IP addresses into the rcpthosts to prevent this error... But I was thinking there has to be an easier way of doing this other than becoming and open relay... consult your qmail documentation Please help... Thanks wm --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Outlook 2003 client config for Courier-IMAP
Bill Mounsey wrote: Here is an error I am getting when I setup my Outlook 2003 client for my IMAP server... Your message did not reach some or all of the intended recipients. Subject: test Sent: 7/9/2004 6:28 PM The following recipient(s) could not be reached: '[EMAIL PROTECTED](dot)com' on 7/9/2004 6:28 PM 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) You're confused. Courier-imap is used to *read* email, not send it. That error you're seeing occurs when sending a message. And secondly, that error message is from qmail, so you need to be asking your question on the qmail list, not here. --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users