Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

conf-break change does not work

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


julien at nura

Apr 20, 2009, 3:26 AM

Post #1 of 4 (1167 views)
Permalink
conf-break change does not work

Hello,

I want to change the user-ext delimiter to a plus character "+" in order
to accept mail for joe+695479844 [at] domain so I change the value in
conf-break and then make a "make setup check" but the behaviour of qmail
does not change !

Is it because I don't issue another command before the make setup check
like a ./configure in order to apply conf-break change ?

Is it because my variable part (extension) contains "-" character, my
exact recipients are :

mailing+654689-65469 [at] domain
mailing+984798-87943 [at] domain
and so on ...

I want to deliver all this mail to a program and, so, create
a .qmail-mailing-default containing "|/usr/local/bin/handle-bounce.sh"

mail for mailing-654689 [at] domain and mailing [at] domain are correctly
handle by .qmail-mailing-default but it is not the right delimiter it
works with a "-" but not a "+"

my auto_break.c file looks like :

char auto_break[] = "\
\053\
";

and 53 is the octal representation of +

If you have any idea about what happened, I'm very insteresting.

Thanks for your reply,
Julien.


kyle-qmail at memoryhole

Apr 20, 2009, 10:11 AM

Post #2 of 4 (1103 views)
Permalink
Re: conf-break change does not work [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday, April 20 at 12:26 PM, quoth Julien:
> I want to change the user-ext delimiter to a plus character "+" in
> order to accept mail for joe+695479844 [at] domain

Okay...

> so I change the value in conf-break and then make a "make setup
> check" but the behaviour of qmail does not change !

Note what it says in the conf-break file:

You can override this choice at run time with the qmail-users
mechanism.

So, my guess is that your domain has specified the "-" character in
the users file (probably because its a virtual domain), thus it
doesn't matter what the compiled-in default is, because it's
overridden at run time.

To fix it, edit /var/qmail/users/assign, and re-run qmail-users to
rebuild the cdb file.

~Kyle
- --
Be sincere; be brief; be seated.
-- Franklin D. Roosevelt
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAknsrL0ACgkQBkIOoMqOI17WmQCeNYblw6ai/2ok6/j48lBep1ef
GaMAoK2hvV70XAEWS0/j18fyYmMpAhIB
=2ZMo
-----END PGP SIGNATURE-----


julien at nura

Apr 21, 2009, 4:36 AM

Post #3 of 4 (1094 views)
Permalink
Re: conf-break change does not work [In reply to]

Thanks for your reply !

Le lundi 20 avril 2009 à 12:11 -0500, Kyle Wheeler a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Monday, April 20 at 12:26 PM, quoth Julien:
> > I want to change the user-ext delimiter to a plus character "+" in
> > order to accept mail for joe+695479844 [at] domain
>
> Okay...
>
> > so I change the value in conf-break and then make a "make setup
> > check" but the behaviour of qmail does not change !
>
> Note what it says in the conf-break file:
>
> You can override this choice at run time with the qmail-users
> mechanism.
>
> So, my guess is that your domain has specified the "-" character in
> the users file (probably because its a virtual domain), thus it
> doesn't matter what the compiled-in default is, because it's
> overridden at run time.

I have no virtual domain, it is a fresh install of netqmail-1.06 with

ls -l /var/qmail/control/
total 28
-rw-r--r-- 1 root root 3 2009-04-02 12:31 concurrencyincoming
-rw-r--r-- 1 root root 11 2009-04-02 12:27 defaultdelivery
-rw-r--r-- 1 root root 12 2009-04-02 12:24 defaultdomain
-rw-r--r-- 1 root root 430 2009-04-08 12:10 locals
-rw-r--r-- 1 root root 19 2009-04-02 12:24 me
-rw-r--r-- 1 root root 430 2009-04-08 12:09 rcpthosts
-rw-r--r-- 1 root root 19 2009-04-10 17:04 smtproutes

my /var/qmail/users directory is empty

I have some alias define in /var/qmail/alias :

-rw-r--r-- 1 root qmail 28 2009-04-08 10:34 .qmail-activate
-rw-r--r-- 1 root qmail 10 2009-04-08 10:35 .qmail-activation
-rw-r--r-- 1 root qmail 22 2009-04-08 10:37 .qmail-affiliate
-rw-r--r-- 1 root qmail 6 2009-04-08 10:32 .qmail-ftp
-rw-r--r-- 1 root qmail 6 2009-04-08 10:32 .qmail-hostmaster
-rw-r--r-- 1 root qmail 6 2009-04-08 10:31 .qmail-mailer-daemon
-rw-r--r-- 1 root qmail 40 2009-04-08 10:34 .qmail-mailing
lrwxrwxrwx 1 root qmail 14 2009-04-17 11:35 .qmail-mailing-default -> .qmail-mailing
-rw-r--r-- 1 root qmail 6 2009-04-08 10:32 .qmail-news
-rw-r--r-- 1 root qmail 6 2009-04-08 10:32 .qmail-nobody
-rw-r--r-- 1 root qmail 6 2009-04-08 10:32 .qmail-noc
-rw-r--r-- 1 root qmail 6 2009-04-02 16:42 .qmail-postmaster
-rw-r--r-- 1 root qmail 24 2009-04-02 16:43 .qmail-root
-rw-r--r-- 1 root qmail 6 2009-04-08 10:33 .qmail-security
-rw-r--r-- 1 root qmail 20 2009-04-08 10:37 .qmail-support
-rw-r--r-- 1 root qmail 6 2009-04-08 10:32 .qmail-usenet
-rw-r--r-- 1 root qmail 6 2009-04-08 10:32 .qmail-webmaster
-rw-r--r-- 1 root qmail 6 2009-04-08 10:32 .qmail-www
-rw-r--r-- 1 root qmail 6 2009-04-08 10:33 .qmail-www-data


> To fix it, edit /var/qmail/users/as.qmail-abuse
> sign, and re-run qmail-users to
> rebuild the cdb file.

How can I custom address extension delimiter in /var/qmail/users for
mailing+469489-68459 [at] domaine ? I want to use "+" as a delimiter for
alias "mailing".

I have no system user (no sub directory in /home). On this server, I
have no local storage. Each mail is forward to program or forward to
another address.

Julien

>
> ~Kyle
> - --
> Be sincere; be brief; be seated.
> -- Franklin D. Roosevelt
> -----BEGIN PGP SIGNATURE-----
> Comment: Thank you for using encryption!
>
> iEYEARECAAYFAknsrL0ACgkQBkIOoMqOI17WmQCeNYblw6ai/2ok6/j48lBep1ef
> GaMAoK2hvV70XAEWS0/j18fyYmMpAhIB
> =2ZMo
> -----END PGP SIGNATURE-----


kyle-qmail at memoryhole

Apr 21, 2009, 7:19 AM

Post #4 of 4 (1078 views)
Permalink
Re: conf-break change does not work [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, April 21 at 01:36 PM, quoth Julien:
> I have no virtual domain, it is a fresh install of netqmail-1.06 with

Hmm. Interesting.

I haven't fussed with alternative extensions much myself, so I'm not
sure why that might not work.

>> To fix it, edit /var/qmail/users/assign, and re-run qmail-users to
>> rebuild the cdb file.
>
> How can I custom address extension delimiter in /var/qmail/users for
> mailing+469489-68459 [at] domaine ? I want to use "+" as a delimiter for
> alias "mailing".

That should be straightforward, if you read the qmail-users man page.
You'll need two lines in your users/assign file. First:

=mailing:alias:UID:GID:/var/qmail/alias/mailing:::

(replace UID and GID with the uid and gid of the qmail alias user, and
be sure to create the /var/qmail/alias/mailing directory, and make it
owned by the qmail alias user) Second:

+mailing:alias:UID:GID:/var/qmail/alias/mailing:+::

(again, replace UID and GID with the uid and gid of the qmail alias
user)

Once that's done, you'll need to do two more things: first, run
qmail-newu to build the user/cdb file based on the contents of the
user/assign file you just created, and second, create
/var/qmail/alias/mailing/.qmail and
/var/qmail/alias/mailing/.qmail-default files that forward your mail
to wherever you want it to go, like so:

echo "|forward user [at] remotehos" > /var/qmail/alias/mailing/.qmail
echo "|forward user [at] remotehos" > /var/qmail/alias/mailing/.qmail-default

~Kyle
- --
In order to keep a true perspective of one's importance, everyone
should have a dog that will worship him and a cat that will ignore
him.
-- Dereke Bruce
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAknt1fcACgkQBkIOoMqOI16GCgCgybQrjqN8KWScyVgqzP8VKZlq
ijsAnRrR78ccAdQERzm7Hp6P5heLqUb+
=syEs
-----END PGP SIGNATURE-----

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.