amandeep singh | 6 Jun 16:11 2007
Picon

how to change LDAP password in squirrelmail

hello all,

              I m using qmail-ldap with a webmail "squirrelmail" interface.
        I have installed a squirrelmail plugin "change_ldappass" but not able to change
   my ldap password through squirrel mail.....

      It's really urgent..........can anyone help

Thanx in advance,

aman.


If you don't like my opinion of you - improve yourself!
 
AMAN

Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
Scott Ryan | 6 Jun 17:15 2007
Picon

Re: how to change LDAP password in squirrelmail

Maybe you should send this request the sqmail list?

On 6/6/07, amandeep singh <amandeep_rattan <at> yahoo.com > wrote:
hello all,

              I m using qmail-ldap with a webmail "squirrelmail" interface.
        I have installed a squirrelmail plugin "change_ldappass" but not able to change
   my ldap password through squirrel mail.....

      It's really urgent..........can anyone help

Thanx in advance,

aman.


If you don't like my opinion of you - improve yourself!
 
AMAN

Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.




--
slr
Gabriel Musco | 7 Jun 00:26 2007
Picon

Re: how to change LDAP password in squirrelmail

Squirrel have plugins for change the user ldap's password. The plugins 
are in php language , i changed the original plugins because this allow 
empty password, i can send you my changed plugin if you want or download 
the original in the squirrel web page.

Scott Ryan escribió:
> Maybe you should send this request the sqmail list?
>
> On 6/6/07, *amandeep singh* <amandeep_rattan <at> yahoo.com 
> <mailto:amandeep_rattan <at> yahoo.com> > wrote:
>
>     hello all,
>
>                   I m using qmail-ldap with a webmail "squirrelmail"
>     interface.
>             I have installed a squirrelmail plugin "change_ldappass"
>     but not able to change
>        my ldap password through squirrel mail.....
>
>           It's really urgent..........can anyone help
>
>     Thanx in advance,
>
>     aman.
>
>
>     If you don't like my opinion of you - improve yourself!
>      
>     AMAN* *
>
>     ------------------------------------------------------------------------
>     Get the free Yahoo! toolbar
>     <http://us.rd.yahoo.com/evt=48226/*http://new.toolbar.yahoo.com/toolbar/features/norton/index.php>
>     and rest assured with the added security of spyware protection. 
>
>
>
>
> -- 
> slr 

Zdravko Stoychev | 7 Jun 13:40 2007
Picon

2 domains in auto-reply

Hi all! We have set up auto-responder script which checks a DB and sends 
back email
like this:

    echo -e "$RESP\n\n$RECIPIENT" | mailsubj "$SUBJ" $MAILFR

The message sent appears (From:) as "user <at> mps.bg" <at> mps.bg - it is appended
twice. We have tryed using qmail-inject and thus replacing From sender 
using the
parameter -f$LOCAL, but no go.

The script is called from run script (DefaultDelivery) like this:

    |/var/qmail/bin/check.sh

Any clues on this issue?

My conf:

qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 500.
subdirectory split: 23.
user ids: 503, 504, 505, 0, 506, 507, 508, 509.
group ids: 503, 504.
me: My name is mx.mps.bg
ldapserver: My ldap server is 10.0.0.2:389 10.0.0.3:389 

badmailfrom: 

badmailfrom-unknown: (Default.) Any MAIL FROM from hosts without PTR is allowed.

badrcptto: 

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is mx.mps.bg.

bouncemaxbytes: Bounce data limit is 10240 bytes.

concurrencylocal: Local concurrency is 40.

concurrencyremote: Remote concurrency is 40.

custombouncetext: (Default.) No custombouncetext.

databytes: SMTP DATA limit is 30000000 bytes.

defaultdomain: Default domain name is mps.bg.

defaulthost: Default host name is mps.bg.

dirmaker: Program to create homedirs /var/qmail/bin/autodir.sh.

doublebouncehost: (Default.) 2B recipient host: mx.mps.bg.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: Presumed domain name is mps.bg.

goodmailaddr: 
abuse <at> mps.bg is allowed in any case.

helohost: SMTP client HELO host name is mx.mps.bg.

idhost: (Default.) Message-ID host name is mx.mps.bg.

localiphost: (Default.) Local IP address becomes mx.mps.bg.

locals: 
Messages for mps.bg are delivered locally.
Messages for mx.mps.bg are delivered locally.
Messages for www.mps.bg are delivered locally.
Messages for localhost.mps.bg are delivered locally.
Messages for mps.local are delivered locally.

me: My name is mx.mps.bg.

outgoingip: (Default.) Bind qmail-remote to 0.0.0.0.

pbscachesize: (Default.) PBS cachesize is 1048576 bytes.

pbsenv: (Default.) No environment variables will be passed.

pbsip: (Default.) Bind PBS daemon to 0.0.0.0.

pbsport: (Default.) PBS deamon listens on port 2821.

pbssecret: (Default.) PBS shared secret is undefined! Uh-oh.

pbsservers: (Default.) No PBS servers.

pbstimeout: (Default.) PBS entries will be valid for 600 seconds.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is mps.bg.

qmqpcip: (Default.) Bind qmail-qmqpc to 0.0.0.0.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

quotawarning: 
From: Postmaster <admin <at> mps.bg>
Subject: E-mail Quota Warning!
Content-Type: text/plain
Your MPS mail folders size has reached or is above 90% of your mail quota.
Please delete any unuseful messages or archive some old messages in order
to free some space on the mail server.
If you are using IMAP mail account once you delete some messages make sure
you do a purge for that folders too in order to clear all deleted items.
Thank you for your understanding!
MPS Admins
admin <at> mps.bg

rbllist: 
RBL to check:         bl.spamcop.net reject    127.0.0.2 See http://spamcop.net/.
RBL to check:       sbl.spamhaus.org reject    127.0.0.2 See http://www.spamhaus.org/SBL.
RBL to check:          list.dsbl.org reject    127.0.0.2 See http://dsbl.org/main.
RBL to check:            or.orbl.org reject    127.0.0.2 See http://www.orbl.org/.
RBL to check:  spamguard.leadmon.net addheader 127.0.0.2 Address is a dialup address..

rcpthosts: 

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

relaymailfrom: 

smtpgreeting: SMTP greeting: 220 MPS Ltd (Linux 2.6 SMP Fri Oct 20 13:51:51 EEST 2006 i686 athlon i386 GNU/Linux).

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains: (Default.) No virtual domains.

Now the qmail-ldap specific files:

ldapbasedn: LDAP basedn: cn=users,dc=mps,dc=local.

ldapserver: 
10.0.0.2:389
10.0.0.3:389

ldaplogin: LDAP login: cn=mx, cn=users, dc=mps, dc=local.

ldappassword: LDAP password: <hidden>.

ldaptimeout: LDAP server timeout is 30 seconds.

ldapuid: Default UID is 510.

ldapgid: Default GID is 510.

ldapobjectclass: The objectclass to limit ldap filter is user.

ldapmessagestore: Prefix for non absolute paths is /home/vmail.

ldapdefaultdotmode: Default dot mode for ldap users is dotonly.

defaultquotasize: Mailbox size quota is 2097152000 bytes (0 is unlimited).

defaultquotacount: (Default.) Mailbox count quota is 0 messages (0 is unlimited).

ldaplocaldelivery: Local passwd lookup is 1 (1 = on, 0 = off).

ldaprebind: Ldap rebinding is 1 (1 = on, 0 = off).

ldapcluster: Clustering is 0 (1 = on, 0 = off).

ldapclusterhosts: (Default.) Messages for me are not redirected.

-- 
  Zdravko Stoychev
  System Software and Support
  MPS Ltd.
  zdravko.stoychev <at> mps.bg
  +359-2-491-1827 (ext.271)

Ако не отговарям на писмата Ви - погледнете тук: http://6lyokavitza.org/mail

--------------------------------------
"Quality is never an accident; it is always the result of high intention, sincere effort, intelligent
direction, and skillful execution; it presents the wise choice of many alternatives."
- W. Foster.

--------------------------------------
This e-mail is intended only for the addressee(s) and may contain privileged and confidential
information. It should not be disseminated, distributed, or copied. If you have received this e-mail
message by mistake, please inform the sender, and delete it from your system.

Attachment (smime.p7s): application/x-pkcs7-signature, 4408 bytes
Zdravko Stoychev | 7 Jun 14:02 2007
Picon

Re: qmail-perl SPF and DKIM verifier

I have updated the script, few if-s were optimized and default behavior 
is fixed to reject nothing.
See attached file for details. You will need two CPAN modules 
pre-installed on your system:

$cpan -i Mail::SPF::Query Mail::DKIM::Verifier

Zdravko Stoychev wrote:
> Hi all! I have managed to run a perl script (called from .qmail or
> control/defaultdelivery) which performs SPF and DKIM checks on incoming
> messages. It is work in progress and needs some tuning as white-listing
> IP-nets is hardcoded (when sending from Intranet) and $dkim object
> usage, behavior on soft/hard-errors is hardcoded too, etc. Still it is
> working well on our ~150 mailboxes server so far. This is temporary
> solution for me until real qmail-src implementation is (probably) added
> for the SPF and/or DKIM RFCs. Feel free to enhance it and provide feedback.
>
> [attached: abusecheck.pl]
>
>   

-- 
  Zdravko Stoychev
  System Software and Support
  MPS Ltd.
  zdravko.stoychev <at> mps.bg
  +359-2-491-1827 (ext.271)

Ако не отговарям на писмата Ви - погледнете тук: http://6lyokavitza.org/mail

--------------------------------------
"Quality is never an accident; it is always the result of high intention, sincere effort, intelligent
direction, and skillful execution; it presents the wise choice of many alternatives."
- W. Foster.

--------------------------------------
This e-mail is intended only for the addressee(s) and may contain privileged and confidential
information. It should not be disseminated, distributed, or copied. If you have received this e-mail
message by mistake, please inform the sender, and delete it from your system.

#!/usr/bin/perl
#
#       If you are using qmail as your MTA stick this file in the
#	/var/qmail/bin/abusecheck.pl and chmod +x it, and then for 
#	each .qmail file which needs SPF/DKIM processing just add
#
#	|/var/qmail/bin/abusecheck.pl 
#
#       to the top of the .qmail file -- normally before the Maildir
#       line.
#
#       By default, this rejects nothing, but adds the Received-SPF
#       or X-SPF-Guess header (for SPF), or Authentication-Results 
#	header (for DKIM). Rejecting is pretty useless as you know 
#	that the sender is forged!
#
#       Philip Gladstone - original SPF implementation
#	Zdravko Stoychev - added DKIM implementation
#
#	Rev:2

use strict;

use Sys::Hostname;
use Mail::SPF::Query;
use Mail::DKIM::Verifier;

my $sender = $ENV{SENDER};
my $src;
my $helo;
my $ourhost = hostname;

my $softfail = 0;       # 0 = Don't delay ERROR messages, 
			# 1 = Delay SPF/DKIM msgs temporary

my $hardfail = 0;       # 0 = Don't reject DENY messages, 
			# 1 = Reject SPF/DKIM FAIL messages

if (exists $ENV{RELAYCLIENT}) {
    # This is a well-known allowed relaying client.
    # Signify that delivery is to continue
    exit 0;
}

my  <at> msg;
my $dkim = Mail::DKIM::Verifier->new();

while (<>) {
    push  <at> msg, $_;
    if (/^Received-SPF/i || /^X-SPF-Guess/i || /^Authentication-Results/i) {
        # I tought to check that it is my record but since it appears 
	# before the first received, it probably is mine.
        # Signify that delivery is to continue
        exit 0;
    }

    # remove local line terminators
    chomp;
    s/\015$//;
    # use SMTP line terminators
    $dkim->PRINT("$_\015\012");

    if (!$sender && /^Return-path: <(.*)>/i) {
        $sender = $1;
    }
    if (!$src && /^Received:\s*from\s+(\S+)\s.*\(\[([.\d]+)\]\)/i) {
        my $from = $1;
        $src = $2;
        ($helo) = /\(HELO (\S+)\)/;
        $helo ||= $from;
        last;
    }
}

if (!$src || $src =~ /^10\.0\./ || $src =~ /^192\.168\.0\./) {
    # This is probably a local delivery or sending from Intranet
    # Signify that delivery is to continue
    exit 0;
}

# OK, perform SPF check...
my $spfheader = "Received-SPF"; # No spaces please!

my $query = Mail::SPF::Query->new(ip => $src, sender => $sender, helo => $helo, 
    guess => 1, trusted => 1, myhostname => $ourhost);

my ($spfresult, $spferror, $spfcomment) = $query->result();

if ($spfresult eq "fail") { 
    # domain is forged!!!
    if ($hardfail) {
        print "SPF failed: $spferror";
        # Fail the delivery
        exit 100; 
    }
} elsif ($spfresult eq "error") {
    # DNS temporary error
    if ($softfail) {
        print $spferror;
        # Delay the delivery
        exit 111; 
    }
}

$spfresult ||= 'unknown';

my $spfoutput = "$spfresult";
if ($spfcomment ne "") {
    $spfoutput = "$spfoutput ($spfcomment)";
}

# NEXT, perform DKIM check...
while (<>) {
    push  <at> msg, $_;
    # remove local line terminators
    chomp;
    s/\015$//;
    # use SMTP line terminators
    $dkim->PRINT("$_\015\012");
}
$dkim->CLOSE;

# what is the result of the verify?
my $dkimheader  = "Authentication-Results"; # No spaces please!
my $dkimresult  = $dkim->result;
my $dkimpolicy  = $dkim->fetch_author_policy;
my $dkimcomment = $dkim->result_detail;

if (defined $dkimpolicy && $dkimpolicy->testing) {
    # this DKIM policy is in testing mode,
    # do not check for FAIL codes
} else {
  if ($dkimresult eq "fail") { 
    # domain is forged!!!
    if ($hardfail) {
        print "DKIM failed: $dkimcomment";
        # Fail the delivery
        exit 100; 
    }
  } elsif ($dkimresult eq "invalid") { 
    # SIG temporary error
    if ($softfail) {
        print "DKIM signature: $dkimcomment";
        # Delay the delivery
        exit 111; 
    }
  }
}

$dkimresult ||= 'unknown';

my $dkimoutput  = "$ourhost; mail.from=$sender; dkim=$dkimcomment";

if (defined $dkimpolicy) {
    my $dkimwhy = $dkimpolicy->apply($dkim);
    $dkimoutput = "$dkimoutput; dkim.policy=$dkimwhy";
    if ($dkimpolicy->testing) {
	$dkimoutput = "$dkimoutput (testing)";
    }
}

# Done
($ENV{QMAILSUSER}, $ENV{QMAILSHOST}) = $sender =~ /(.*) <at> ([^ <at> ]+)/;

# Instead using LOCAL you might want to use RECIPIENT bellow,
# depending of your qmail configuration
open (MAIL, "|-") || exec 'qmail-inject', $ENV{LOCAL};

# output checks results
print MAIL "$dkimheader: $dkimoutput\n";
print MAIL "$spfheader: $spfoutput\n";

# output the message
print MAIL  <at> msg;
# just in case
#while (<>) { print MAIL; }
close(MAIL) || exit 0;

# Delivery OK, but don't continue in .qmail file
exit 99;
Attachment (smime.p7s): application/x-pkcs7-signature, 4408 bytes
Zdravko Stoychev | 7 Jun 14:03 2007
Picon

Re: qmail-perl SPF and DKIM verifier

Hi!

Scott Ryan wrote:
There is already an SPF patch for qmail-ldap and a plugin.
I was using it sometime ago.
Where is it? I know one about stock qmail, but not qmail-ldap.

On 5/30/07, Zdravko Stoychev < zdravko.stoychev <at> mps.bg> wrote:
Hi all! I have managed to run a perl script (called from .qmail or
control/defaultdelivery) which performs SPF and DKIM checks on incoming
messages. It is work in progress and needs some tuning as white-listing
IP-nets is hardcoded (when sending from Intranet) and $dkim object
usage, behavior on soft/hard-errors is hardcoded too, etc. Still it is
working well on our ~150 mailboxes server so far. This is temporary
solution for me until real qmail-src implementation is (probably) added
for the SPF and/or DKIM RFCs. Feel free to enhance it and provide feedback.

[attached: abusecheck.pl]

--
  Zdravko Stoychev
  System Software and Support
  MPS Ltd.
  zdravko.stoychev <at> mps.bg
  +359-2-491-1827 (ext.271)

Not answered?
http://6lyokavitza.org/mail

PGP Public Key:
http://keyserver.kjsl.com:11371/pks/lookup?op=get&search=0x2C64101C

Key Fingerprint:
EC7E CA74 952D F343 2AAD 0F34 857D E27D 2C64 101C

This e-mail is intended only for the addressee(s) and may contain
privileged and confidential information. It should not be disse-
minated, distributed, or copied. If you have received this e-mail
message by mistake, please inform the sender, and delete it from
your system.



#!/usr/bin/perl
#
#       If you are using qmail as your MTA stick this file in the
#       /var/qmail/bin/abusecheck.pl and chmod +x it, and then for
#       each .qmail file which needs SPF/DKIM processing just add
#
#       |/var/qmail/bin/abusecheck.pl
#
#       to the top of the .qmail file -- normally before the Maildir
#       line.
#
#       By default, this rejects nothing, but adds the Received-SPF
#       or X-SPF-Guess header (for SPF), or Authentication-Results
#       header (for DKIM). Rejecting is pretty useless as you know
#       that the sender is forged!
#
#       Philip Gladstone - original SPF implementation
#       Zdravko Stoychev - added DKIM implementation
#

use strict;

use Sys::Hostname;
use Mail::SPF::Query;
use Mail::DKIM::Verifier;

my $sender = $ENV{SENDER};
my $src;
my $helo;
my $ourhost = hostname;

my $softfail = 1;       # 0 = Don't delay ERROR messages,
                        # 1 = Delay SPF/DKIM msgs temporary

my $hardfail = 1;       # 0 = Don't reject DENY messages,
                        # 1 = Reject SPF/DKIM FAIL messages

if (exists $ENV{RELAYCLIENT}) {
    # This is a well-known allowed relaying client.
    # Signify that delivery is to continue
    exit 0;
}

my <at> msg;
my $dkim = Mail::DKIM::Verifier->new();

while (<>) {
    push <at> msg, $_;
    if (/^Received-SPF/i || /^X-SPF-Guess/i || /^Authentication-Results/i) {
        # I tought to check that it is my record but since it appears
        # before the first received, it probably is mine.
        # Signify that delivery is to continue
        exit 0;
    }

    # remove local line terminators
    chomp;
    s/\015$//;
    # use SMTP line terminators
    $dkim->PRINT("$_\015\012");

    if (!$sender && /^Return-path: <(.*)>/i) {
        $sender = $1;
    }
    if (!$src && /^Received:\s*from\s+(\S+)\s.*\(\[([.\d]+)\]\)/i) {
        my $from = $1;
        $src = $2;
        ($helo) = /\(HELO (\S+)\)/;
        $helo ||= $from;
        last;
    }
}

if (!$src || $src =~ /^10\.0\./ || $src =~ /^192\.168\.0\./) {
    # This is probably a local delivery or sending from Intranet
    # Signify that delivery is to continue
    exit 0;
}

# OK, perform SPF check...
my $spfheader = "Received-SPF"; # No spaces please!

my $query = Mail::SPF::Query->new(ip => $src, sender => $sender, helo => $helo,
    guess => 1, trusted => 1, myhostname => $ourhost);

my ($spfresult, $spferror, $spfcomment) = $query->result();

if ($spfresult eq "fail") {
    # domain is forged!!!
    if ($hardfail) {
        print "SPF failed: $spferror";
        # Fail the delivery
        exit 100;
    }
} elsif ($spfresult eq "error") {
    # DNS temporary error
    if ($softfail) {
        print $spferror;
        # Delay the delivery
        exit 111;
    }
}

$spfresult ||= 'unknown';

my $spfoutput = "$spfresult";
if ($spfcomment ne "") {
    $spfoutput = "$spfoutput ($spfcomment)";
}

# NEXT, perform DKIM check...
while (<>) {
    push <at> msg, $_;
    # remove local line terminators
    chomp;
    s/\015$//;
    # use SMTP line terminators
    $dkim->PRINT("$_\015\012");
}
$dkim->CLOSE;

# what is the result of the verify?
my $dkimheader  = "Authentication-Results"; # No spaces please!
my $dkimresult  = $dkim->result;
my $dkimpolicy  = $dkim->fetch_author_policy;
my $dkimcomment = $dkim->result_detail;

if ($dkimresult eq "fail") {
    # domain is forged!!!
    if (! $dkimpolicy->testing && $hardfail) {
        print "DKIM failed: $dkimcomment";
        # Fail the delivery
        exit 100;
    }
} elsif ($dkimresult eq "invalid") {
    # SIG temporary error
    if ($softfail) {
        print "DKIM signature: $dkimcomment";
        # Delay the delivery
        exit 111;
    }
}

$dkimresult ||= 'unknown';

my $dkimwhy     = $dkimpolicy->apply($dkim);
my $dkimoutput  = "$ourhost; mail.from=$sender; dkim=$dkimcomment; dkim.policy=$dkimwhy";
if ($dkimpolicy->testing) {
    $dkimoutput = "$dkimoutput (testing)";
}

# Done
($ENV{QMAILSUSER}, $ENV{QMAILSHOST}) = $sender =~ /(.*) <at> ([^ <at> ]+)/;

# Instead using LOCAL you might want to use RECIPIENT bellow,
# depending of your qmail configuration
open (MAIL, "|-") || exec 'qmail-inject', $ENV{LOCAL};

# output checks results
print MAIL "$dkimheader: $dkimoutput\n";
print MAIL "$spfheader: $spfoutput\n";

# output the message
print MAIL <at> msg;
# just in case
#while (<>) { print MAIL; }
close(MAIL) || exit 0;

# Delivery OK, but don't continue in .qmail file
exit 99;





--
slr

-- Zdravko Stoychev System Software and Support MPS Ltd. zdravko.stoychev <at> mps.bg +359-2-491-1827 (ext.271) Ако не отговарям на писмата Ви - погледнете тук: http://6lyokavitza.org/mail -------------------------------------- "Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction, and skillful execution; it presents the wise choice of many alternatives." - W. Foster. -------------------------------------- This e-mail is intended only for the addressee(s) and may contain privileged and confidential information. It should not be disseminated, distributed, or copied. If you have received this e-mail message by mistake, please inform the sender, and delete it from your system.
Attachment (smime.p7s): application/x-pkcs7-signature, 4408 bytes
Zdravko Stoychev | 8 Jun 08:10 2007
Picon

Re: 2 domains in auto-reply [SOLVED]

Simple solution, we have missed setting up e-mail headers:

# send an autoresponse message
MYNAME="\"$RECIPIENT (Auto-Reply)\" <$RECIPIENT>"
HDRS="$MYHEAD: $MYHOST (Qmail Secretary and Mail Forwarding v1.3)\nFrom: 
$MYNAME\nTo: <$MAILFR>\nContent-Type: text/plain; charset=\"iso-8859-1\""
echo -e "$HDRS\nSubject: $SUBJ\n\n$RESP\n\n$RECIPIENT" | qmail-inject -a 
$MAILFR

Zdravko Stoychev wrote:
> Hi all! We have set up auto-responder script which checks a DB and 
> sends back email
> like this:
>
>    echo -e "$RESP\n\n$RECIPIENT" | mailsubj "$SUBJ" $MAILFR
>
> The message sent appears (From:) as "user <at> mps.bg" <at> mps.bg - it is appended
> twice. We have tryed using qmail-inject and thus replacing From sender 
> using the
> parameter -f$LOCAL, but no go.
>
> The script is called from run script (DefaultDelivery) like this:
>
>    |/var/qmail/bin/check.sh
>
> Any clues on this issue?
>
> My conf:
>
> qmail home directory: /var/qmail.
> user-ext delimiter: -.
> paternalism (in decimal): 2.
> silent concurrency limit: 500.
> subdirectory split: 23.
> user ids: 503, 504, 505, 0, 506, 507, 508, 509.
> group ids: 503, 504.
> me: My name is mx.mps.bg
> ldapserver: My ldap server is 10.0.0.2:389 10.0.0.3:389
>
> badmailfrom:
> badmailfrom-unknown: (Default.) Any MAIL FROM from hosts without PTR 
> is allowed.
>
> badrcptto:
> bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.
>
> bouncehost: (Default.) Bounce host name is mx.mps.bg.
>
> bouncemaxbytes: Bounce data limit is 10240 bytes.
>
> concurrencylocal: Local concurrency is 40.
>
> concurrencyremote: Remote concurrency is 40.
>
> custombouncetext: (Default.) No custombouncetext.
>
> databytes: SMTP DATA limit is 30000000 bytes.
>
> defaultdomain: Default domain name is mps.bg.
>
> defaulthost: Default host name is mps.bg.
>
> dirmaker: Program to create homedirs /var/qmail/bin/autodir.sh.
>
> doublebouncehost: (Default.) 2B recipient host: mx.mps.bg.
>
> doublebounceto: (Default.) 2B recipient user: postmaster.
>
> envnoathost: Presumed domain name is mps.bg.
>
> goodmailaddr: abuse <at> mps.bg is allowed in any case.
>
> helohost: SMTP client HELO host name is mx.mps.bg.
>
> idhost: (Default.) Message-ID host name is mx.mps.bg.
>
> localiphost: (Default.) Local IP address becomes mx.mps.bg.
>
> locals: Messages for mps.bg are delivered locally.
> Messages for mx.mps.bg are delivered locally.
> Messages for www.mps.bg are delivered locally.
> Messages for localhost.mps.bg are delivered locally.
> Messages for mps.local are delivered locally.
>
> me: My name is mx.mps.bg.
>
> outgoingip: (Default.) Bind qmail-remote to 0.0.0.0.
>
> pbscachesize: (Default.) PBS cachesize is 1048576 bytes.
>
> pbsenv: (Default.) No environment variables will be passed.
>
> pbsip: (Default.) Bind PBS daemon to 0.0.0.0.
>
> pbsport: (Default.) PBS deamon listens on port 2821.
>
> pbssecret: (Default.) PBS shared secret is undefined! Uh-oh.
>
> pbsservers: (Default.) No PBS servers.
>
> pbstimeout: (Default.) PBS entries will be valid for 600 seconds.
>
> percenthack: (Default.) The percent hack is not allowed.
>
> plusdomain: Plus domain name is mps.bg.
>
> qmqpcip: (Default.) Bind qmail-qmqpc to 0.0.0.0.
>
> qmqpservers: (Default.) No QMQP servers.
>
> queuelifetime: (Default.) Message lifetime in the queue is 604800 
> seconds.
>
> quotawarning: From: Postmaster <admin <at> mps.bg>
> Subject: E-mail Quota Warning!
> Content-Type: text/plain
> Your MPS mail folders size has reached or is above 90% of your mail 
> quota.
> Please delete any unuseful messages or archive some old messages in order
> to free some space on the mail server.
> If you are using IMAP mail account once you delete some messages make 
> sure
> you do a purge for that folders too in order to clear all deleted items.
> Thank you for your understanding!
> MPS Admins
> admin <at> mps.bg
>
> rbllist: RBL to check:         bl.spamcop.net reject    127.0.0.2 See 
> http://spamcop.net/.
> RBL to check:       sbl.spamhaus.org reject    127.0.0.2 See 
> http://www.spamhaus.org/SBL.
> RBL to check:          list.dsbl.org reject    127.0.0.2 See 
> http://dsbl.org/main.
> RBL to check:            or.orbl.org reject    127.0.0.2 See 
> http://www.orbl.org/.
> RBL to check:  spamguard.leadmon.net addheader 127.0.0.2 Address is a 
> dialup address..
>
> rcpthosts:
> morercpthosts: (Default.) No effect.
>
> morercpthosts.cdb: (Default.) No effect.
>
> relaymailfrom:
> smtpgreeting: SMTP greeting: 220 MPS Ltd (Linux 2.6 SMP Fri Oct 20 
> 13:51:51 EEST 2006 i686 athlon i386 GNU/Linux).
>
> smtproutes: (Default.) No artificial SMTP routes.
>
> timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.
>
> timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.
>
> timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.
>
> virtualdomains: (Default.) No virtual domains.
>
>
>
> Now the qmail-ldap specific files:
>
> ldapbasedn: LDAP basedn: cn=users,dc=mps,dc=local.
>
> ldapserver: 10.0.0.2:389
> 10.0.0.3:389
>
> ldaplogin: LDAP login: cn=mx, cn=users, dc=mps, dc=local.
>
> ldappassword: LDAP password: <hidden>.
>
> ldaptimeout: LDAP server timeout is 30 seconds.
>
> ldapuid: Default UID is 510.
>
> ldapgid: Default GID is 510.
>
> ldapobjectclass: The objectclass to limit ldap filter is user.
>
> ldapmessagestore: Prefix for non absolute paths is /home/vmail.
>
> ldapdefaultdotmode: Default dot mode for ldap users is dotonly.
>
> defaultquotasize: Mailbox size quota is 2097152000 bytes (0 is 
> unlimited).
>
> defaultquotacount: (Default.) Mailbox count quota is 0 messages (0 is 
> unlimited).
>
> ldaplocaldelivery: Local passwd lookup is 1 (1 = on, 0 = off).
>
> ldaprebind: Ldap rebinding is 1 (1 = on, 0 = off).
>
> ldapcluster: Clustering is 0 (1 = on, 0 = off).
>
> ldapclusterhosts: (Default.) Messages for me are not redirected.
>
>

-- 
  Zdravko Stoychev
  System Software and Support
  MPS Ltd.
  zdravko.stoychev <at> mps.bg
  +359-2-491-1827 (ext.271)

Ако не отговарям на писмата Ви - погледнете тук: http://6lyokavitza.org/mail

--------------------------------------
"Quality is never an accident; it is always the result of high intention, sincere effort, intelligent
direction, and skillful execution; it presents the wise choice of many alternatives."
- W. Foster.

--------------------------------------
This e-mail is intended only for the addressee(s) and may contain privileged and confidential
information. It should not be disseminated, distributed, or copied. If you have received this e-mail
message by mistake, please inform the sender, and delete it from your system.

Attachment (smime.p7s): application/x-pkcs7-signature, 4408 bytes
Zdravko Stoychev | 8 Jun 09:40 2007
Picon

Auto-Reply and Mail Forwarding (Bash, MySQL)

Hey all!

I'm posting here few scripts which implement Mail Forwarding and 
Auto-Responder for qmail(-ldap).
All settings are stored in MySQL database (create-sql file is provided) 
and could be managed from any
third-party tool as Horde's Vacations module, for example. 
Administrative command-line scripts are
provided as well. This package could be useful for any virtual hosting.

How to use it? First, create the DB, and grand rights to qmail, alias 
and administrative users to use it.
Copy qmail-bin scripts to /var/qmail/bin and chown them properly. Copy 
qmail-alias scripts to alias/~
and chown it as well. Then include forwardcheck.sh in your qmail run 
script (default delivery) like this

    |/var/qmail/bin/forwardcheck.sh

usualy before ./Maildir/ line. Again, make sure the qmail user has right 
to use this MySQL database.
If you are going to write sql by hand in order to integrate it to 
third-party tools (web-mail), please note
that all e-mail addresses stored in DB have a space character in front 
of them.

Local users can activate/deactivate mail forwarding remotely by sending 
a blank email to this address

    secretary <at> your-domain.com

specifying forwarding address in Subject line in order to set it up, or 
dast (-) in order to deactivate it.
Make sure the alias user has right to use the MySQL database. Note that 
in this case local copy of
forwarded messages will not be kept.

Hope this could be useful to someone.

-- 
  Zdravko Stoychev
  System Software and Support
  MPS Ltd.
  zdravko.stoychev <at> mps.bg
  +359-2-491-1827 (ext.271)

Ако не отговарям на писмата Ви - погледнете тук: http://6lyokavitza.org/mail

--------------------------------------
"Quality is never an accident; it is always the result of high intention, sincere effort, intelligent
direction, and skillful execution; it presents the wise choice of many alternatives."
- W. Foster.

--------------------------------------
This e-mail is intended only for the addressee(s) and may contain privileged and confidential
information. It should not be disseminated, distributed, or copied. If you have received this e-mail
message by mistake, please inform the sender, and delete it from your system.

Attachment (qmail-secretary.tar.gz): application/x-gzip, 5535 bytes
Attachment (smime.p7s): application/x-pkcs7-signature, 4408 bytes
Krzysztof Tracz | 12 Jun 13:23 2007
Picon

Compiling Qmail with QMAIL-LDAP patch and smtp_auth patch

Compiling Qmail LDAP patch

Hello all,

I tried to compile Qmail LDAP patch + smtp_auth patch, and this is what I 
got

./load qmail-smtpd rcpthosts.o commands.o timeoutread.o rbl.o 
timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o  received.o 
date822fmt.o now.o qmail.o execcheck.o cdb.a  smtpcall.o coe.o fd.a seek.a 
wait.a datetime.a getln.a  open.a sig.a case.a env.a stralloc.a alloc.a 
substdio.a  error.a fs.a auto_qmail.o dns.o str.a auto_break.o  `cat 
dns.lib` `cat socket.lib`
qmail-smtpd.o(.text+0x35c2): In function `smtp_auth':
: warning: strcpy() is almost always misused, please use strlcpy()
qmail-smtpd.o(.text+0x3415): In function `smtp_auth':
: undefined reference to `b64_pton'
qmail-smtpd.o(.text+0x3449): In function `smtp_auth':
: undefined reference to `b64_pton'
qmail-smtpd.o(.text+0x3569): In function `smtp_auth':
: undefined reference to `b64_pton'
collect2: ld returned 1 exit status
*** Error code 1

I have used qmail-1.03 + qmail-ldap-1.03-20060201.patch + 
smtp-auth-20030801.patch.
There sems to be a problem with this smtp-auth-20030801.patch, I have to 
make some changes in qmail-send.c

Is there a workaround ?
Thanks in advance :-)

Regards,
Krzysztof Tracz

----------------------------------------------------------------------
Nowy darmowy serwis ogoszeniowy Populada. Kup, sprzedaj, zamie  
>>> http://link.interia.pl/f1a8a

Scott Ryan | 12 Jun 14:36 2007
Picon

Re: Compiling Qmail with QMAIL-LDAP patch and smtp_auth patch

SMTP-AUTH patch is included in the QMAIL-LDAP patch.

On 6/12/07, Krzysztof Tracz <gozlo <at> interia.pl> wrote:
Compiling Qmail LDAP patch

Hello all,

I tried to compile Qmail LDAP patch + smtp_auth patch, and this is what I
got

./load qmail-smtpd rcpthosts.o commands.o timeoutread.o rbl.o
timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o  received.o
date822fmt.o now.o qmail.o execcheck.o cdb.a  smtpcall.o coe.o fd.a seek.a
wait.a datetime.a getln.a  open.a sig.a case.a env.a stralloc.a alloc.a
substdio.a  error.a fs.a auto_qmail.o dns.o str.a auto_break.o  `cat
dns.lib` `cat socket.lib`
qmail-smtpd.o(.text+0x35c2): In function `smtp_auth':
: warning: strcpy() is almost always misused, please use strlcpy()
qmail-smtpd.o(.text+0x3415): In function `smtp_auth':
: undefined reference to `b64_pton'
qmail-smtpd.o(.text+0x3449): In function `smtp_auth':
: undefined reference to `b64_pton'
qmail-smtpd.o(.text+0x3569): In function `smtp_auth':
: undefined reference to `b64_pton'
collect2: ld returned 1 exit status
*** Error code 1

I have used qmail-1.03 + qmail-ldap-1.03-20060201.patch +
smtp-auth-20030801.patch.
There sems to be a problem with this smtp-auth-20030801.patch, I have to
make some changes in qmail-send.c


Is there a workaround ?
Thanks in advance :-)

Regards,
Krzysztof Tracz



----------------------------------------------------------------------
Nowy darmowy serwis og³oszeniowy Populada. Kup, sprzedaj, zamieñ
>>> http://link.interia.pl/f1a8a




--
slr

Gmane