Adding a user to courier

Mag Gam <magawake <at> gmail.com>
2009-06-01 00:18:16 GMT

We are using Debian and Courier as our MTA. We would like to add
several hundred users to our email system (they don't have an Unix
account).
Is it possible to add these users? Also, is it possible to add them
using courier-web console?
TIA
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
courier-users mailing list
courier-users <at> lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Re: Adding a user to courier

Bernd Wurst <bernd <at> bwurst.org>
2009-06-01 04:28:06 GMT

Hi.
Am Montag 01 Juni 2009 02:18:16 schrieb Mag Gam:
> We are using Debian and Courier as our MTA. We would like to add
> several hundred users to our email system (they don't have an Unix
> account).
>
> Is it possible to add these users? Also, is it possible to add them
> using courier-web console?
It's important to know what authentication backend you are using.
When it's not authpam, then it's some other sort of database. Maybe
authuserdb, authmysql or something like that.
For further assistance, you should tell us what backend you are using.
You can always add the new accounts as entries in that database or file. Doing
it via web-console is possible but really painful because all entries must bei
set up individually.
cu,
Bernd

Re: Adding a user to courier

Mag Gam <magawake <at> gmail.com>
2009-06-01 09:51:16 GMT

Bernd:
Thanks for the response. What if I would like to do it via a file? I
would like something very simple.
I have searched everywhere on the site and google but can't find the
docs on it. Can you also point me to the docs?
TIA
On Mon, Jun 1, 2009 at 12:28 AM, Bernd Wurst <bernd <at> bwurst.org> wrote:
> Hi.
>
> Am Montag 01 Juni 2009 02:18:16 schrieb Mag Gam:
>> We are using Debian and Courier as our MTA. We would like to add
>> several hundred users to our email system (they don't have an Unix
>> account).
>>
>> Is it possible to add these users? Also, is it possible to add them
>> using courier-web console?
>
> It's important to know what authentication backend you are using.
> When it's not authpam, then it's some other sort of database. Maybe
> authuserdb, authmysql or something like that.
> For further assistance, you should tell us what backend you are using.
>
> You can always add the new accounts as entries in that database or file. Doing
> it via web-console is possible but really painful because all entries must bei
> set up individually.
>
> cu,
> Bernd
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> courier-users mailing list
> courier-users <at> lists.sourceforge.net
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>
>
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
courier-users mailing list
courier-users <at> lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Re: Adding a user to courier

Sam Varshavchik <mrsam <at> courier-mta.com>
2009-06-01 11:09:53 GMT

Mag Gam writes:
> Bernd:
>
> Thanks for the response. What if I would like to do it via a file? I
> would like something very simple.
That's what shell scripts are for.
> I have searched everywhere on the site and google but can't find the
> docs on it. Can you also point me to the docs?
See the courier-authlib man pages. Again, you need to state which
authentication modules you're using. If you're using system accounts,
authpam, then just use your system's regular script for adding users.
If you're using authuserdb, write a script that invokes userdb to create new
accounts. If you're using another authentication module, write an
appropriate script to update the database. In all cases, you'll also need to
create the account's home directory and maildir.

Re: Adding a user to courier

Bernd Wurst <bernd <at> bwurst.org>
2009-06-01 11:37:22 GMT

Hello.
Am Montag 01 Juni 2009 11:51:16 schrieb Mag Gam:
> Thanks for the response. What if I would like to do it via a file? I
> would like something very simple.
Then have a look at authuserdb.
> I have searched everywhere on the site and google but can't find the
> docs on it. Can you also point me to the docs?
See http://www.courier-mta.org/authlib/README_authlib.html
There's a chapter about a simple userdb-Setup.
cu, Bernd

Re: sending mail (SMTPS) very slow

Bowie Bailey <Bowie_Bailey <at> BUC.com>
2009-06-01 14:40:05 GMT

Sam Varshavchik wrote:
> Bowie Bailey writes:
>
>> Sam Varshavchik wrote:
>>> Bowie Bailey writes:
>>>>
>>>> Interesting. I verified that CRAM authentication was failing on
>>>> both of my Courier systems. Disabling it made them both much more
>>>> responsive.
>>>>
>>>> What additional requirements does CRAM have? I looked in the
>>>> INSTALL document, the courier man page, and the esmtpd config
>>>> file. None of them said anything other than that you have to use a
>>>> compatible authentication method, which I am (authuserdb).
>>>
>>> It helps to actually understand how CRAM works. CRAM cannot use
>>> encrypted passwords, so the system must be configured to use
>>> cleartext passwords. Additionally, there's a special configuration
>>> procedure for userdb.
>>>
>>> Courier-IMAP's INSTALL has a section entitled "CRAM-MD5
>>> authentication". This should also be present in Courier's INSTALL,
>>> but it's not. That's an omission.
>>
>> Unfortunately, it is not feasible to change all of the passwords on
>> the server at this point, so I don't think we'll be able to set up
>> CRAM authentication anytime soon.
>>
>> I read the Courier-IMAP INSTALL doc and it seems fairly
>> straightforward. Perhaps a modified version should be added to the
>> main Courier INSTALL. Also, should Courier ship with CRAM disabled
>> as Courier-IMAP apparently does?
>
> It should be, and I'm pretty sure it is.
>
> IMAP_CAPABILITY in imapd.dist.in, the shipped configuration, does not
> list CRAM. The comments that precede the documentation have an example
> that includes CRAM methods, but the actual default setting does not.
> Same for POP3AUTH in pop3d.dist.in, and ESMTPAUTH in esmtpd.dist.in.
> As far as I can tell, CRAM authentication is disabled by default.
Actually, now that I look at it, it appears to ship with all
authentication disabled. In order to enable it, you have to change the
ESMTPAUTH settings.
esmtpd.dist:
------------------------------------------------
##NAME: ESMTPAUTH:4
#
# To enable authenticated SMTP relaying, uncomment the ESMTPAUTH setting,
# below, and set it to ESMTP authentication mechanisms we support.
Currently
# LOGIN and CRAM-MD5 are available:
#
# ESMTPAUTH="LOGIN CRAM-MD5"
#
# You can also try PLAIN, CRAM-SHA1, and CRAM-SHA256. See INSTALL for more
# information.
#
ESMTPAUTH=""
------------------------------------------------
Based on this, someone who knows nothing about the inner workings of
these authentication methods (i.e., me), would conclude that they should
follow the example given and use LOGIN and CRAM-MD5. There should
probably be a note here saying that additional configuration may be
needed in order to use CRAM-MD5 authentication.
--
--
Bowie
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
courier-users mailing list
courier-users <at> lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

courierlocal syntax error

Bowie Bailey <Bowie_Bailey <at> BUC.com>
2009-06-01 20:56:15 GMT

I have an email that it stuck in my queue and is causing other emails
for this account to be rejected with a 456. The errors in the maillog
look like this:
-------------------------------------------------------------------
Jun 1 14:44:39 bnofmail courierlocal:
id=0014401F.4A231147.00002E55,from=<"veronicabloch." <at> gmail.com>,addr=<info <at> superyachtsociety.com>:
517 Syntax error.
Jun 1 14:44:39 bnofmail courierlocal:
id=0014401F.4A231147.00002E55,from=<"veronicabloch." <at> gmail.com>,addr=<info <at> superyachtsociety.com>:
maildrop: error writing to mailbox.
Jun 1 14:44:39 bnofmail courierlocal:
id=0014401F.4A231147.00002E55,from=<"veronicabloch." <at> gmail.com>,addr=<info <at> superyachtsociety.com>:
maildrop: Unable to deliver to mailbox.
Jun 1 14:44:39 bnofmail courierlocal:
id=0014401F.4A231147.00002E55,from=<"veronicabloch." <at> gmail.com>,addr=<info <at> superyachtsociety.com>,status:
deferred
-------------------------------------------------------------------
I assume the problem is the funky from address, but isn't it legal if
it's quoted like that? Is there a way to force the message through, or
am I going to have to manually cancel the message?
--
--
Bowie
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
courier-users mailing list
courier-users <at> lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Re: courierlocal syntax error

Sam Varshavchik <mrsam <at> courier-mta.com>
2009-06-01 23:05:36 GMT

Bowie Bailey writes:
> I have an email that it stuck in my queue and is causing other emails
> for this account to be rejected with a 456. The errors in the maillog
> look like this:
>
> -------------------------------------------------------------------
> Jun 1 14:44:39 bnofmail courierlocal:
>
id=0014401F.4A231147.00002E55,from=<"veronicabloch." <at> gmail.com>,addr=<info <at> superyachtsociety.com>:
> 517 Syntax error.
> Jun 1 14:44:39 bnofmail courierlocal:
>
id=0014401F.4A231147.00002E55,from=<"veronicabloch." <at> gmail.com>,addr=<info <at> superyachtsociety.com>:
> maildrop: error writing to mailbox.
> Jun 1 14:44:39 bnofmail courierlocal:
>
id=0014401F.4A231147.00002E55,from=<"veronicabloch." <at> gmail.com>,addr=<info <at> superyachtsociety.com>:
> maildrop: Unable to deliver to mailbox.
> Jun 1 14:44:39 bnofmail courierlocal:
>
id=0014401F.4A231147.00002E55,from=<"veronicabloch." <at> gmail.com>,addr=<info <at> superyachtsociety.com>,status:
> deferred
> -------------------------------------------------------------------
>
> I assume the problem is the funky from address, but isn't it legal if
> it's quoted like that? Is there a way to force the message through, or
> am I going to have to manually cancel the message?
The funky from address merely causes the real problem: it looks like you
have a maildrop recipe running in this mailbox, and it's barfing trying to
process this message. It problem takes the sender's address and uses it in
an external command, without quoting it properly.
Look at your maildrop recipe.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get