Re: [qmailtoaster] Development version

2019-01-24 Thread Andrew Swartz

I would add the caveat that STARTTLS is only "probably safe".

Unfortunately, it suffers from a critical error in the very concept of 
going from an plaintext session to a TLS session, resulting in an 
unfixable (as far as I know) vulnerability.  A man-in-the-middle can 
inject text into the server response to tell the client that STARTTLS is 
not available and that the conversation should therefore continue in 
plaintext.  I've read that several ISP's have been caught using this 
vulnerability to scan people's outgoing email.  That means PLAIN or 
LOGIN type submission passwords can be seen.


This is why the 2018 RFC (https://tools.ietf.org/html/rfc8314) has 
strongly recommended abandoning STARTTLS on port 587 and using dedicated 
TLS on port 465 for mail submission.


-Andy





On 1/24/2019 9:30 PM, Eric Broch wrote:
The password is not encrypted (Normal) but is sent over an encrypted 
connection, it's safe.


On 1/24/2019 5:39 PM, Philip Nix Guru wrote:

Hello

I was testing the dev version (an upgrade over the stable version) and 
came through that annoying problem


if I have to advise all users to change their config :


Sending of the message failed.
The Outgoing server (SMTP) xx does not seem to support encrypted 
passwords. If you just set up the account, try changing the 
'Authentication method' in 'Account settings | Outgoing server (SMTP)' 
to 'Normal password'.


All the users having a starttls config in their mail client had to 
change from encrypted to normal


which of course brought the question "oh it is not safe anymore ..."


Regards

-Philip





-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Development version

2019-01-24 Thread Eric Broch
The password is not encrypted (Normal) but is sent over an encrypted 
connection, it's safe.


On 1/24/2019 5:39 PM, Philip Nix Guru wrote:

Hello

I was testing the dev version (an upgrade over the stable version) and 
came through that annoying problem


if I have to advise all users to change their config :


Sending of the message failed.
The Outgoing server (SMTP) xx does not seem to support encrypted 
passwords. If you just set up the account, try changing the 
'Authentication method' in 'Account settings | Outgoing server (SMTP)' 
to 'Normal password'.


All the users having a starttls config in their mail client had to 
change from encrypted to normal


which of course brought the question "oh it is not safe anymore ..."


Regards

-Philip





-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


--
Eric Broch
White Horse Technical Consulting (WHTC)


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: [Norton AntiSpam]Re: [qmailtoaster] SMTPS (port 465) is not working

2019-01-24 Thread Eric Broch

This is with qmail-1.03-3.1 :

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
RECORDIO="/usr/bin/recordio"
RECORDIO=""
export SMTPS=1
export FORCETLS=0
export SMTPAUTH="!"


exec /usr/bin/softlimit -m 12800 \
    /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
    -u "$QMAILDUID" -g "$NOFILESGID" 0 465 \
    $RECORDIO \
    $SMTPD $VCHKPW /bin/true 2>&1

On 1/24/2019 4:22 PM, dave wrote:


Eric,

 Would you mind sharing your smtp-ssl run file?

I am having a little trouble with auth on mine and I think I broke it LOL.

Thanks

Dave


On 1/11/19 2:40 PM, Eric Broch wrote:

here's mine:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
RECORDIO="/usr/bin/recordio"
RECORDIO=""
export SMTPS=1
export FORCETLS=0
export SMTPAUTH="!"


exec /usr/bin/softlimit -m 12800 \
    /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c 
"$MAXSMTPD" \

    -u "$QMAILDUID" -g "$NOFILESGID" 0 465 \
    $RECORDIO \
    $SMTPD $VCHKPW /bin/true 2>&1

On 1/11/2019 1:36 PM, Solo wrote:

Hi Eric.


[root@post log]# cat /var/qmail/supervise/smtps/run
#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
export REQUIRE_AUTH=1
export SMTPS=1

exec /usr/bin/softlimit -m 12800 \
 /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c 
"$MAXSMTPD" \

 -u "$QMAILDUID" -g "$NOFILESGID" 0 465 \
 $SMTPD $VCHKPW /bin/true 2>&1

/Finn
Den 11-01-2019 kl. 21:27 skrev Eric Broch:

Post output of

# cat /var/qmail/supervise/smtps/run

please.

On 1/11/2019 12:36 PM, Solo wrote:

Hi List.


I am facing #5.7.1 Sorry, that domain isn't in my list of allowed
rcpsthosts (CHKUSER)
whenever i am trying to send using SMTPS - port 465.

I have created a new Minimal Centos7 server, installed qmail as per
the qmailtoaster.org receipe all the way to Qmail-1.03-3.1 (Dev repo)

rsync'ed with -u not to overwrite newer controlfiles, from my 
production
(Qmail-1.03-2.1), dumped database and checked all /var/qmail files 
and

made sure (I hope) that content in rcpthosts, virtualdomains etc was
like production server.

It works very well until I try to use port 465 to submit an e-mail 
then

#5.7.1 Sorry, that domain isn't in my list of allowed rcpsthosts
(CHKUSER) is showing up on my Thunderbird

This is the line in the SMTPS log

2019-01-11 16:38:47.075740500 CHKUSER accepted sender: from
 remote <[192.168.1.100]:unknown:xxx.xxx.xxx.xx> 
rcpt

<> : sender accepted
2019-01-11 16:38:47.129749500 CHKUSER rejected relaying: from
 remote <[192.168.1.100]:unknown:xxx.xxx.xxx.xx> 
rcpt

 : client not allowed to relay

and this is the lines from my submission log

2019-01-11 15:31:07.454431500 CHKUSER accepted sender: from
 remote
<[192.168.1.100]:unknown:xxx.xxx.xxx.xx> rcpt <> : sender accepted
2019-01-11 15:31:07.505012500 CHKUSER relaying rcpt: from
 remote
<[192.168.1.100]:unknown:xxx.xxx.xxx.xx> rcpt  : 
client

allowed to relay


So why is the senders address  in the SMTPS log
and  in the Submission log

I'm almost certain this is my issue because :: is not in the 
rcpthosts
file (I have tried a lot of different settings - and properly 
running in

cirkles now so please -HELP)  - I have not tried, yet, to change
tcp.smtp to include ip-address:allow

Cheers Finn von B





-
To unsubscribe, e-mail: 
qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: 
qmailtoaster-list-h...@qmailtoaster.com



-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: 
qmailtoaster-list-h...@qmailtoaster.com



--


--
Eric Broch
White Horse Technical Consulting (WHTC)



[qmailtoaster] Development version

2019-01-24 Thread Philip Nix Guru

Hello

I was testing the dev version (an upgrade over the stable version) and 
came through that annoying problem


if I have to advise all users to change their config :


Sending of the message failed.
The Outgoing server (SMTP) xx does not seem to support encrypted 
passwords. If you just set up the account, try changing the 
'Authentication method' in 'Account settings | Outgoing server (SMTP)' 
to 'Normal password'.


All the users having a starttls config in their mail client had to 
change from encrypted to normal


which of course brought the question "oh it is not safe anymore ..."


Regards

-Philip





-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: [Norton AntiSpam]Re: [qmailtoaster] SMTPS (port 465) is not working

2019-01-24 Thread dave

Eric,

 Would you mind sharing your smtp-ssl run file?

I am having a little trouble with auth on mine and I think I broke it LOL.

Thanks

Dave


On 1/11/19 2:40 PM, Eric Broch wrote:

here's mine:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
RECORDIO="/usr/bin/recordio"
RECORDIO=""
export SMTPS=1
export FORCETLS=0
export SMTPAUTH="!"


exec /usr/bin/softlimit -m 12800 \
    /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
    -u "$QMAILDUID" -g "$NOFILESGID" 0 465 \
    $RECORDIO \
    $SMTPD $VCHKPW /bin/true 2>&1

On 1/11/2019 1:36 PM, Solo wrote:

Hi Eric.


[root@post log]# cat /var/qmail/supervise/smtps/run
#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
export REQUIRE_AUTH=1
export SMTPS=1

exec /usr/bin/softlimit -m 12800 \
 /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c 
"$MAXSMTPD" \

 -u "$QMAILDUID" -g "$NOFILESGID" 0 465 \
 $SMTPD $VCHKPW /bin/true 2>&1

/Finn
Den 11-01-2019 kl. 21:27 skrev Eric Broch:

Post output of

# cat /var/qmail/supervise/smtps/run

please.

On 1/11/2019 12:36 PM, Solo wrote:

Hi List.


I am facing #5.7.1 Sorry, that domain isn't in my list of allowed
rcpsthosts (CHKUSER)
whenever i am trying to send using SMTPS - port 465.

I have created a new Minimal Centos7 server, installed qmail as per
the qmailtoaster.org receipe all the way to Qmail-1.03-3.1 (Dev repo)

rsync'ed with -u not to overwrite newer controlfiles, from my 
production

(Qmail-1.03-2.1), dumped database and checked all /var/qmail files and
made sure (I hope) that content in rcpthosts, virtualdomains etc was
like production server.

It works very well until I try to use port 465 to submit an e-mail 
then

#5.7.1 Sorry, that domain isn't in my list of allowed rcpsthosts
(CHKUSER) is showing up on my Thunderbird

This is the line in the SMTPS log

2019-01-11 16:38:47.075740500 CHKUSER accepted sender: from
 remote <[192.168.1.100]:unknown:xxx.xxx.xxx.xx> 
rcpt

<> : sender accepted
2019-01-11 16:38:47.129749500 CHKUSER rejected relaying: from
 remote <[192.168.1.100]:unknown:xxx.xxx.xxx.xx> 
rcpt

 : client not allowed to relay

and this is the lines from my submission log

2019-01-11 15:31:07.454431500 CHKUSER accepted sender: from
 remote
<[192.168.1.100]:unknown:xxx.xxx.xxx.xx> rcpt <> : sender accepted
2019-01-11 15:31:07.505012500 CHKUSER relaying rcpt: from
 remote
<[192.168.1.100]:unknown:xxx.xxx.xxx.xx> rcpt  : 
client

allowed to relay


So why is the senders address  in the SMTPS log
and  in the Submission log

I'm almost certain this is my issue because :: is not in the rcpthosts
file (I have tried a lot of different settings - and properly 
running in

cirkles now so please -HELP)  - I have not tried, yet, to change
tcp.smtp to include ip-address:allow

Cheers Finn von B





-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: 
qmailtoaster-list-h...@qmailtoaster.com



-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


--


Re: [qmailtoaster] roundcube password plugin

2019-01-24 Thread Remo Mattei
That’s what I have done on my end and that works just fine do not have to 
change anything else.
Remo 

> On Jan 24, 2019, at 12:20, Eric Broch  wrote:
> 
> You can set up dovecot with 'managesieve' in order to be able to edit rules 
> in roundcube and thunderbird. 
> 
> On 1/24/2019 11:57 AM, Leonardo Porto wrote:
>> I just found out what happens:
>> 
>> The default ~/vpopmail/domains/yourdomain/.qmail-default file contains:
>> 
>> | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
>> 
>> and the QmailAdmin vacation message works.
>> When you install and configure Dovecot and Sieve you have to change it to:
>> 
>> |/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER -o 
>> postmaster_address=postmaster@yourdomain
>> 
>> and then the filters works.
>> 
>> So it's one or another I guess.
>> The filters are a lot more useful and that rule does the job, thanks for the 
>> tip.
>> 
>> btw: I turned the file .qmail-default immutable using chattr because 
>> QmailAdmin change it when you configure a catchall account.
>> 
>> 
>> 
>> Em 24/01/2019 15:58, Remo Mattei escreveu:
>>> so here is what I did on mine to make the vacation working:
>>> 
>>> I have the password which resets the password in case the user wants to 
>>> change it and that works ok unless you are using php7.x
>>> (have not had time to debug that on that server running php 7 yet)
>>> 
>>> I have implemented managesieve plugin which user can set up an responder 
>>> setting like this:
>>> create a new filter, select matching any of the following rules: then 
>>> select to: is equal to your email 
>>> 
>>> select reply with message 
>>> 
>>> That does exactly what qmailadmin autoresponder action does. 
>>> 
>>> Hopefully that helps. 
>>> Remo 
>>> 
>>> --
>>> 
>>> On Thursday, Jan 24, 2019 at 09:52, Leonardo Porto 
>>> mailto:leonardo.po...@iw.net.br>> wrote:
>>> Hi everyone,
>>> 
>>> I tried qmailadmin plugin but it doesn't work for me because it shows 
>>> password and vacation message tabs in english even though my qmailadmin 
>>> works in portuguese.
>>> So I'm working with password plugin and sql driver anyway.
>>> 
>>> I found out vacation message is not working, I'm configuring it via 
>>> QmailAdmin and the files seems ok:
>>> 
>>> # ll /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail -rw--- 1 
>>> vpopmail vchkpw 207 Jan 24 15:31 
>>> /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail # cat 
>>> /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail 
>>> /home/vpopmail/domains/iwtelecom.com.br/fulano/Maildir/ | 
>>> /usr/bin/autorespond 86400 3 
>>> /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message 
>>> /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation 
>>> # ll /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message 
>>> -rw--- 1 vpopmail vchkpw 55 Jan 24 15:31 
>>> /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message # cat 
>>> /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message From: 
>>> ful...@iwtelecom.com.br  Subject: ausente 
>>> No idea why yet.
>>> 
>>> 
>>> 
>>> Em 23/01/2019 09:03, Leonardo Porto escreveu:
 Eric, sorry I did not express myself right, at the time I installed the 
 old server I did not know how to do that, but now I saw it in that link 
 you shared, thank you.
 
 I will use it but also want to test qmailadmin driver to see that it does 
 and I share here.
 
 Thanks
 
 Em 22/01/2019 19:16, Eric Broch escreveu:
> 2nd to last post:
> 
> $rcmail_config['password_driver'] = 'sql';
> $rcmail_config['password_db_dsn'] = 
> 'mysql://vpopmailuser:password@localhost/vpopmail';
> $emailuser=$_SESSION['username'];
> $domain = split("@",$emailuser);
> $dom_table = str_replace(".","_",$domain[1]);
> $rcmail_config['password_query'] = "UPDATE $dom_table SET pw_passwd=%c, 
> pw_clear_passwd=%p WHERE pw_name=%l LIMIT 1";
> 
> On 1/22/2019 1:43 PM, Leonardo Porto wrote:
>> Right!
>> 
>> I use that in the old server but I did not know how to convert the "." 
>> into "_" then I fixed the domain name.
>> I considered use it again but I can not remember how I got the vpopmail 
>> user's password in mysql or if I simply changed it.
>> Can I change its password? I mean, will something stop working if I 
>> change it?
>> 
>> 
>> 
>> Em 22/01/2019 13:01, Eric Broch escreveu:
>>> Here's on using mysql driver roundcube and account for our '_' in the 
>>> domain name:
>>> 
>>> https://www.roundcubeforum.net/index.php?topic=6083.0 
>>> 
>>> On 1/22/2019 7:55 AM, Leonardo - IW Telecom wrote:
 Yeah I saw about it too but I did not try yet... I will try both and 
 post the instructions.
 
 Thanks
 
 
 Em 22/01/2019 12:15, Eric Broch escreveu:
> Here's 

Re: [qmailtoaster] roundcube password plugin

2019-01-24 Thread Eric Broch
You can set up dovecot with 'managesieve' in order to be able to edit 
rules in roundcube and thunderbird.


On 1/24/2019 11:57 AM, Leonardo Porto wrote:


I just found out what happens:

The default ~/vpopmail/domains/yourdomain/.qmail-default file contains:

| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

and the QmailAdmin vacation message works.
When you install and configure Dovecot and Sieve you have to change it to:

|/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER 
-o postmaster_address=postmaster@yourdomain


and then the filters works.

So it's one or another I guess.
The filters are a lot more useful and that rule does the job, thanks 
for the tip.


btw: I turned the file .qmail-default immutable using chattr because 
QmailAdmin change it when you configure a catchall account.



Em 24/01/2019 15:58, Remo Mattei escreveu:

so here is what I did on mine to make the vacation working:

I have the password which resets the password in case the user wants 
to change it and that works ok unless you are using php7.x

(have not had time to debug that on that server running php 7 yet)

I have implemented managesieve plugin which user can set up an 
responder setting like this:
create a new filter, select matching any of the following rules: then 
select to: is equal to your email


select reply with message

That does exactly what qmailadmin autoresponder action does.

Hopefully that helps.
Remo

--

On Thursday, Jan 24, 2019 at 09:52, Leonardo Porto
mailto:leonardo.po...@iw.net.br>> wrote:

Hi everyone,

I tried qmailadmin plugin but it doesn't work for me because it
shows password and vacation message tabs in english even though
my qmailadmin works in portuguese.
So I'm working with password plugin and sql driver anyway.

I found out vacation message is not working, I'm configuring it
via QmailAdmin and the files seems ok:

# ll /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail
-rw--- 1 vpopmail vchkpw 207 Jan 24 15:31
/home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail # cat
/home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail
/home/vpopmail/domains/iwtelecom.com.br/fulano/Maildir/ |
/usr/bin/autorespond 86400 3
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation

# ll
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message
-rw--- 1 vpopmail vchkpw 55 Jan 24 15:31
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message #
cat
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message
From: ful...@iwtelecom.com.br Subject: ausente

No idea why yet.


Em 23/01/2019 09:03, Leonardo Porto escreveu:


Eric, sorry I did not express myself right, at the time I
installed the old server I did not know how to do that, but now
I saw it in that link you shared, thank you.

I will use it but also want to test qmailadmin driver to see
that it does and I share here.

Thanks

Em 22/01/2019 19:16, Eric Broch escreveu:


2nd to last post:

$rcmail_config['password_driver'] = 'sql';
$rcmail_config['password_db_dsn'] =
'mysql://vpopmailuser:password@localhost/vpopmail';
$emailuser=$_SESSION['username'];
$domain = split("@",$emailuser);
$dom_table = str_replace(".","_",$domain[1]);
$rcmail_config['password_query'] = "UPDATE $dom_table SET
pw_passwd=%c, pw_clear_passwd=%p WHERE pw_name=%l LIMIT 1";

On 1/22/2019 1:43 PM, Leonardo Porto wrote:


Right!

I use that in the old server but I did not know how to convert
the "." into "_" then I fixed the domain name.
I considered use it again but I can not remember how I got the
vpopmail user's password in mysql or if I simply changed it.
Can I change its password? I mean, will something stop working
if I change it?


Em 22/01/2019 13:01, Eric Broch escreveu:


Here's on using mysql driver roundcube and account for our
'_' in the domain name:

https://www.roundcubeforum.net/index.php?topic=6083.0

On 1/22/2019 7:55 AM, Leonardo - IW Telecom wrote:


Yeah I saw about it too but I did not try yet... I will try
both and post the instructions.

Thanks


Em 22/01/2019 12:15, Eric Broch escreveu:


Here's another plugin that I've found, it logs into qmailadmin:

http://www.davidc.net/miscellany/qmailadmin-plugin-roundcube

On 1/22/2019 6:59 AM, Leonardo - IW Telecom wrote:


Eric,

I found the same page and I am thinking to do exactly you
said.
Do you use roundcube or recommend another driver for
password plugin?

Thanks.


Em 22/01/2019 11:37, Eric Broch escreveu:


Leonardo,

I've never used vpopmaild, but...Have a look here:

https://qmail.jms1.net/vpopmail/vpopmaild.shtml

I think you can tailor the location of the run script to
match the current qmail 

Re: [qmailtoaster] roundcube password plugin

2019-01-24 Thread Leonardo Porto

I just found out what happens:

The default ~/vpopmail/domains/yourdomain/.qmail-default file contains:

| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

and the QmailAdmin vacation message works.
When you install and configure Dovecot and Sieve you have to change it to:

|/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER -o 
postmaster_address=postmaster@yourdomain


and then the filters works.

So it's one or another I guess.
The filters are a lot more useful and that rule does the job, thanks for 
the tip.


btw: I turned the file .qmail-default immutable using chattr because 
QmailAdmin change it when you configure a catchall account.



Em 24/01/2019 15:58, Remo Mattei escreveu:

so here is what I did on mine to make the vacation working:

I have the password which resets the password in case the user wants 
to change it and that works ok unless you are using php7.x

(have not had time to debug that on that server running php 7 yet)

I have implemented managesieve plugin which user can set up an 
responder setting like this:
create a new filter, select matching any of the following rules: then 
select to: is equal to your email


select reply with message

That does exactly what qmailadmin autoresponder action does.

Hopefully that helps.
Remo

--

On Thursday, Jan 24, 2019 at 09:52, Leonardo Porto
mailto:leonardo.po...@iw.net.br>> wrote:

Hi everyone,

I tried qmailadmin plugin but it doesn't work for me because it
shows password and vacation message tabs in english even though my
qmailadmin works in portuguese.
So I'm working with password plugin and sql driver anyway.

I found out vacation message is not working, I'm configuring it
via QmailAdmin and the files seems ok:

# ll /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail
-rw--- 1 vpopmail vchkpw 207 Jan 24 15:31
/home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail # cat
/home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail
/home/vpopmail/domains/iwtelecom.com.br/fulano/Maildir/ |
/usr/bin/autorespond 86400 3
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation

# ll
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message
-rw--- 1 vpopmail vchkpw 55 Jan 24 15:31
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message #
cat
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message
From: ful...@iwtelecom.com.br Subject: ausente

No idea why yet.


Em 23/01/2019 09:03, Leonardo Porto escreveu:


Eric, sorry I did not express myself right, at the time I
installed the old server I did not know how to do that, but now I
saw it in that link you shared, thank you.

I will use it but also want to test qmailadmin driver to see that
it does and I share here.

Thanks

Em 22/01/2019 19:16, Eric Broch escreveu:


2nd to last post:

$rcmail_config['password_driver'] = 'sql';
$rcmail_config['password_db_dsn'] =
'mysql://vpopmailuser:password@localhost/vpopmail';
$emailuser=$_SESSION['username'];
$domain = split("@",$emailuser);
$dom_table = str_replace(".","_",$domain[1]);
$rcmail_config['password_query'] = "UPDATE $dom_table SET
pw_passwd=%c, pw_clear_passwd=%p WHERE pw_name=%l LIMIT 1";

On 1/22/2019 1:43 PM, Leonardo Porto wrote:


Right!

I use that in the old server but I did not know how to convert
the "." into "_" then I fixed the domain name.
I considered use it again but I can not remember how I got the
vpopmail user's password in mysql or if I simply changed it.
Can I change its password? I mean, will something stop working
if I change it?


Em 22/01/2019 13:01, Eric Broch escreveu:


Here's on using mysql driver roundcube and account for our '_'
in the domain name:

https://www.roundcubeforum.net/index.php?topic=6083.0

On 1/22/2019 7:55 AM, Leonardo - IW Telecom wrote:


Yeah I saw about it too but I did not try yet... I will try
both and post the instructions.

Thanks


Em 22/01/2019 12:15, Eric Broch escreveu:


Here's another plugin that I've found, it logs into qmailadmin:

http://www.davidc.net/miscellany/qmailadmin-plugin-roundcube

On 1/22/2019 6:59 AM, Leonardo - IW Telecom wrote:


Eric,

I found the same page and I am thinking to do exactly you said.
Do you use roundcube or recommend another driver for
password plugin?

Thanks.


Em 22/01/2019 11:37, Eric Broch escreveu:


Leonardo,

I've never used vpopmaild, but...Have a look here:

https://qmail.jms1.net/vpopmail/vpopmaild.shtml

I think you can tailor the location of the run script to
match the current qmail configuration in /var/qmail/supervise/

Eric

On 1/22/2019 6:17 AM, Leonardo Porto wrote:


Hi everyone,

I am using Roundcube with my new 

Re: [qmailtoaster] roundcube password plugin

2019-01-24 Thread Remo Mattei
so here is what I did on mine to make the vacation working:

I have the password which resets the password in case the user wants to change 
it and that works ok unless you are using php7.x
(have not had time to debug that on that server running php 7 yet)

I have implemented managesieve plugin which user can set up an responder 
setting like this:
create a new filter, select matching any of the following rules: then select 
to: is equal to your email

select reply with message

That does exactly what qmailadmin autoresponder action does.

Hopefully that helps.
Remo

--

> On Thursday, Jan 24, 2019 at 09:52, Leonardo Porto  (mailto:leonardo.po...@iw.net.br)> wrote:
>
> Hi everyone,
>
>
> I tried qmailadmin plugin but it doesn't work for me because it shows 
> password and vacation message tabs in english even though my qmailadmin works 
> in portuguese.
> So I'm working with password plugin and sql driver anyway.
>
>
> I found out vacation message is not working, I'm configuring it via 
> QmailAdmin and the files seems ok:
>
>
> # ll /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail -rw--- 1 
> vpopmail vchkpw 207 Jan 24 15:31 
> /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail # cat 
> /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail 
> /home/vpopmail/domains/iwtelecom.com.br/fulano/Maildir/ | 
> /usr/bin/autorespond 86400 3 
> /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message 
> /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation
> # ll /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message 
> -rw--- 1 vpopmail vchkpw 55 Jan 24 15:31 
> /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message # cat 
> /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message From: 
> ful...@iwtelecom.com.br (mailto:ful...@iwtelecom.com.br) Subject: ausente
>
> No idea why yet.
>
>
>
>
>
>
> Em 23/01/2019 09:03, Leonardo Porto escreveu:
> >
> > Eric, sorry I did not express myself right, at the time I installed the old 
> > server I did not know how to do that, but now I saw it in that link you 
> > shared, thank you.
> >
> >
> > I will use it but also want to test qmailadmin driver to see that it does 
> > and I share here.
> >
> >
> > Thanks
> >
> >
> > Em 22/01/2019 19:16, Eric Broch escreveu:
> > >
> > > 2nd to last post:
> > >
> > >
> > > $rcmail_config['password_driver'] = 'sql';
> > > $rcmail_config['password_db_dsn'] = 
> > > 'mysql://vpopmailuser:password@localhost/vpopmail';
> > > $emailuser=$_SESSION['username'];
> > > $domain = split("@",$emailuser);
> > > $dom_table = str_replace(".","_",$domain[1]);
> > > $rcmail_config['password_query'] = "UPDATE $dom_table SET pw_passwd=%c, 
> > > pw_clear_passwd=%p WHERE pw_name=%l LIMIT 1";
> > >
> > >
> > > On 1/22/2019 1:43 PM, Leonardo Porto wrote:
> > > >
> > > > Right!
> > > >
> > > >
> > > > I use that in the old server but I did not know how to convert the "." 
> > > > into "_" then I fixed the domain name.
> > > > I considered use it again but I can not remember how I got the vpopmail 
> > > > user's password in mysql or if I simply changed it.
> > > > Can I change its password? I mean, will something stop working if I 
> > > > change it?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Em 22/01/2019 13:01, Eric Broch escreveu:
> > > > >
> > > > > Here's on using mysql driver roundcube and account for our '_' in the 
> > > > > domain name:
> > > > >
> > > > >
> > > > > https://www.roundcubeforum.net/index.php?topic=6083.0
> > > > >
> > > > >
> > > > > On 1/22/2019 7:55 AM, Leonardo - IW Telecom wrote:
> > > > > >
> > > > > > Yeah I saw about it too but I did not try yet... I will try both 
> > > > > > and post the instructions.
> > > > > >
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > > Em 22/01/2019 12:15, Eric Broch escreveu:
> > > > > > >
> > > > > > > Here's another plugin that I've found, it logs into qmailadmin:
> > > > > > >
> > > > > > >
> > > > > > > http://www.davidc.net/miscellany/qmailadmin-plugin-roundcube
> > > > > > >
> > > > > > >
> > > > > > > On 1/22/2019 6:59 AM, Leonardo - IW Telecom wrote:
> > > > > > > >
> > > > > > > > Eric,
> > > > > > > >
> > > > > > > >
> > > > > > > > I found the same page and I am thinking to do exactly you said.
> > > > > > > > Do you use roundcube or recommend another driver for password 
> > > > > > > > plugin?
> > > > > > > >
> > > > > > > >
> > > > > > > > Thanks.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Em 22/01/2019 11:37, Eric Broch escreveu:
> > > > > > > > >
> > > > > > > > > Leonardo,
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > I've never used vpopmaild, but...Have a look here:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > https://qmail.jms1.net/vpopmail/vpopmaild.shtml
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > I think you can tailor the location of the run script to 
> > > > > > > > > match the current qmail configuration in /var/qmail/supervise/
> > > > > > > > >
> > 

Re: [qmailtoaster] roundcube password plugin

2019-01-24 Thread Leonardo Porto

Hi everyone,

I tried qmailadmin plugin but it doesn't work for me because it shows 
password and vacation message tabs in english even though my qmailadmin 
works in portuguese.

So I'm working with password plugin and sql driver anyway.

I found out vacation message is not working, I'm configuring it via 
QmailAdmin and the files seems ok:


# ll /home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail -rw--- 1 
vpopmail vchkpw 207 Jan 24 15:31 
/home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail # cat 
/home/vpopmail/domains/iwtelecom.com.br/fulano/.qmail 
/home/vpopmail/domains/iwtelecom.com.br/fulano/Maildir/ | 
/usr/bin/autorespond 86400 3 
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message 
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation


# ll /home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message 
-rw--- 1 vpopmail vchkpw 55 Jan 24 15:31 
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message # cat 
/home/vpopmail/domains/iwtelecom.com.br/fulano/vacation/message From: 
ful...@iwtelecom.com.br Subject: ausente


No idea why yet.


Em 23/01/2019 09:03, Leonardo Porto escreveu:


Eric, sorry I did not express myself right, at the time I installed 
the old server I did not know how to do that, but now I saw it in that 
link you shared, thank you.


I will use it but also want to test qmailadmin driver to see that it 
does and I share here.


Thanks

Em 22/01/2019 19:16, Eric Broch escreveu:


2nd to last post:

$rcmail_config['password_driver'] = 'sql';
$rcmail_config['password_db_dsn'] = 
'mysql://vpopmailuser:password@localhost/vpopmail';

$emailuser=$_SESSION['username'];
$domain = split("@",$emailuser);
$dom_table = str_replace(".","_",$domain[1]);
$rcmail_config['password_query'] = "UPDATE $dom_table SET 
pw_passwd=%c, pw_clear_passwd=%p WHERE pw_name=%l LIMIT 1";


On 1/22/2019 1:43 PM, Leonardo Porto wrote:


Right!

I use that in the old server but I did not know how to convert the 
"." into "_" then I fixed the domain name.
I considered use it again but I can not remember how I got the 
vpopmail user's password in mysql or if I simply changed it.
Can I change its password? I mean, will something stop working if I 
change it?



Em 22/01/2019 13:01, Eric Broch escreveu:


Here's on using mysql driver roundcube and account for our '_' in 
the domain name:


https://www.roundcubeforum.net/index.php?topic=6083.0

On 1/22/2019 7:55 AM, Leonardo - IW Telecom wrote:


Yeah I saw about it too but I did not try yet... I will try both 
and post the instructions.


Thanks


Em 22/01/2019 12:15, Eric Broch escreveu:


Here's another plugin that I've found, it logs into qmailadmin:

http://www.davidc.net/miscellany/qmailadmin-plugin-roundcube

On 1/22/2019 6:59 AM, Leonardo - IW Telecom wrote:


Eric,

I found the same page and I am thinking to do exactly you said.
Do you use roundcube or recommend another driver for password 
plugin?


Thanks.


Em 22/01/2019 11:37, Eric Broch escreveu:


Leonardo,

I've never used vpopmaild, but...Have a look here:

https://qmail.jms1.net/vpopmail/vpopmaild.shtml

I think you can tailor the location of the run script to match 
the current qmail configuration in /var/qmail/supervise/


Eric

On 1/22/2019 6:17 AM, Leonardo Porto wrote:


Hi everyone,

I am using Roundcube with my new qmailtoaster centos7 
installation. But I did not installed it using yum, I 
downloaded it from roundcube website and run installation 
script, I guess it is the same result.
I trying to use the password plugin, it seems its default db 
driver does not work with qmail/vpopmail, so I tryed vpopmaild.
I run vpopmaild in command line using tcpserver and succefully 
changed the password in roundcube - I could see it working in 
command line.
Now I suppose I have to create supervise files for 
vpopmaild... is that the usual method? Or you guys use 
something else?

Thanks.

Leonardo.


--
Eric Broch
White Horse Technical Consulting (WHTC)

--
Eric Broch
White Horse Technical Consulting (WHTC)

--
Eric Broch
White Horse Technical Consulting (WHTC)

--
Eric Broch
White Horse Technical Consulting (WHTC)