Re: [qmailtoaster] dkim1._domainkey record not found

2019-01-22 Thread Leonardo Porto

Bingo.

This machine was using my authoritative slave and for some reason it did 
not update the zone yet.

I changed the resolver then:

opendkim-testkey: checking key 'dkim1._domainkey.iwtelecom.com.br'
opendkim-testkey: key OK

But I found something else: when I send a message the destination server 
is not checking my sender's domain key, it is checking my server's 
hostname instead, wich is app1.iw.net.br.


So I had to create to more records: dkim1._domainkey.iw.net.br and 
dkim1._domainkey.app1.iw.net.br


Now Gmail says DKIM is ok:

DKIM:    'PASS' com o domínio app1.iw.net.br


Em 21/01/2019 20:47, Eric Broch escreveu:


I figured it out at least on my host as to why one would get 'record 
not found'.


My mail host has entry in resolv.conf 'nameserver 127.0.0.1'

I have named config file for my domain to resolve to this mail host, 
192.168.x.x


running

# opendkim-testkey -vvv -d whitehorsetc.com  -k 
/var/qmail/control/dkim/whitehorsetc.com.key -s dkim1


yields 'record not found'

when I change resolv.conf to external nameserver (8.8.8.8)

# opendkim-testkey -vvv -d whitehorsetc.com  -k 
/var/qmail/control/dkim/whitehorsetc.com.key -s dkim1


yields 'key OK'

You must add a TXT record to whichever DNS server your mail host is using.

On 1/21/2019 10:41 AM, Eric Broch wrote:


Maybe restart your named server.

On 1/21/2019 4:58 AM, Leonardo Porto wrote:


Looks like I was checking it the wrong way, the correct is:

# dig dkim1._domainkey.iwtelecom.com.br TXT
;; ANSWER SECTION:
dkim1._domainkey.iwtelecom.com.br. 86400 IN TXT "v=DKIM1\; k=rsa\; 
p=blabla...blabla"


Checking the key at https://dkimcore.org/tools/ looks fine also.

The opendkim-testkey still shows the error though.


Em 17/01/2019 18:30, Leonardo Porto escreveu:


Hi everyone,

I'm doing the DKIM step for a new server and when I test my DKIM 
signature I receive the error:


# opendkim-testkey - -d iwtelecom.com.br  -k 
/var/qmail/control/dkim/global.key -s dkim1

opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: /var/qmail/control/dkim/global.key: WARNING: 
unsafe permissions

opendkim-testkey: key loaded from /var/qmail/control/dkim/global.key
opendkim-testkey: checking key 'dkim1._domainkey.iwtelecom.com.br'
*opendkim-testkey: 'dkim1._domainkey.iwtelecom.com.br' record not 
found*


I created the record in the domain zone like bellow:

dkim1._domainkey IN  TXT "v=DKIM1; k=rsa; p=bla...bla"

But it does not work when I try to resolve it:

dig dkim1._domainkey.iwtelecom.com.br

And it is not shown when I try:

dig +noall +answer iwtelecom.com.br any

Only the SPF record... I used the named-checkzone and everything 
looks fine, what am I doind wrong?




--
Eric Broch
White Horse Technical Consulting (WHTC)

--
Eric Broch
White Horse Technical Consulting (WHTC)


Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Leonardo - IW Telecom

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)


Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Eric Broch
We use Roundcube and I have instructions on its setup 
 but I've never used the 
password plugin.


If you figure it out can you post instructions?

Thanks!

Eric

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)



Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Eric Broch

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)



Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Eric Broch

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)



[qmailtoaster] roundcube password plugin

2019-01-22 Thread Leonardo Porto

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.



Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Eric Broch

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)



Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Leonardo Porto

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)


Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Remo Mattei
I would add a user or look at the user info for your vpopmail in the 
/home/vpopmail/etc you should have a file with the vpopmail.mysql info which 
contains the password and the user.. You can always add a user to your vpopmail 
like this

mysql to your sql server and using diff options or you can just grant all the 
privilege example: grant all privileges on vpopmail.* to user@localhost 
identified by “mynewpasswordisgreat”; 

That should grant that and you can use that in roundcube I use vpopmail on mine 
and did not add a new one. I notice there is an issue with using php 7x

Remo 

> On Jan 22, 2019, at 13:16, Eric Broch  wrote:
> 
> 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)



Re: [qmailtoaster] dkim1._domainkey record not found

2019-01-22 Thread Leonardo Porto
I updated the defaultdomain and defaulthost files in /var/qmail/control/ 
to iwtelecom.com.br and restarted qmailtoaster.

Gmail it is still checking dkim for app1.iw.net.br (hostname).
Any idea what more files to check?

Here it is some part of the headers:

ARC-Authentication-Results: i=1; mx.google.com;
   dkim=pass header.i=@app1.iw.net.br header.s=dkim1 header.b=KdM7MJMS;
   spf=pass (google.com: domain of sender at iwtelecom.com.br designates 
187.0.147.206 as permitted sender) smtp.mailfrom=sender at iwtelecom.com.br;
   dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=iwtelecom.com.br
Return-Path: 
Received: from app1.iw.net.br (mail.iwtelecom.com.br. [187.0.147.206])
by mx.google.com with ESMTPS id a76si2719168qkg.65.2019.01.22.12.18.56
for 
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 22 Jan 2019 12:18:57 -0800 (PST)


Em 22/01/2019 13:01, Remo Mattei escreveu:

I am pretty sure you have something miss-configured.

I have this working but you also need to see if you have the default 
correct. I will share what I have done and I know it works since I 
have done it in 2 servers now.


Remo

On Jan 22, 2019, at 03:36, Leonardo Porto > wrote:


Bingo.

This machine was using my authoritative slave and for some reason it 
did not update the zone yet.

I changed the resolver then:

opendkim-testkey: checking key 'dkim1._domainkey.iwtelecom.com.br 
'

opendkim-testkey: key OK

But I found something else: when I send a message the destination 
server is not checking my sender's domain key, it is checking my 
server's hostname instead, wich is app1.iw.net.br 
.


So I had to create to more records: dkim1._domainkey.iw.net.br 
 and dkim1._domainkey.app1.iw.net.br 



Now Gmail says DKIM is ok:

DKIM:    'PASS' com o domínio app1.iw.net.br 


Em 21/01/2019 20:47, Eric Broch escreveu:


I figured it out at least on my host as to why one would get 'record 
not found'.


My mail host has entry in resolv.conf 'nameserver 127.0.0.1'

I have named config file for my domain to resolve to this mail host, 
192.168.x.x


running

# opendkim-testkey -vvv -d whitehorsetc.com 
  -k 
/var/qmail/control/dkim/whitehorsetc.com.key -s dkim1


yields 'record not found'

when I change resolv.conf to external nameserver (8.8.8.8)

# opendkim-testkey -vvv -d whitehorsetc.com 
  -k 
/var/qmail/control/dkim/whitehorsetc.com.key -s dkim1


yields 'key OK'

You must add a TXT record to whichever DNS server your mail host is 
using.


On 1/21/2019 10:41 AM, Eric Broch wrote:


Maybe restart your named server.

On 1/21/2019 4:58 AM, Leonardo Porto wrote:


Looks like I was checking it the wrong way, the correct is:

# dig dkim1._domainkey.iwtelecom.com.br 
 TXT

;; ANSWER SECTION:
dkim1._domainkey.iwtelecom.com.br 
. 86400 IN TXT "v=DKIM1\; 
k=rsa\; p=blabla...blabla"


Checking the key at https://dkimcore.org/tools/ looks fine also.

The opendkim-testkey still shows the error though.


Em 17/01/2019 18:30, Leonardo Porto escreveu:


Hi everyone,

I'm doing the DKIM step for a new server and when I test my DKIM 
signature I receive the error:


# opendkim-testkey - -d iwtelecom.com.br 
 -k /var/qmail/control/dkim/global.key 
-s dkim1

opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: /var/qmail/control/dkim/global.key: WARNING: 
unsafe permissions

opendkim-testkey: key loaded from /var/qmail/control/dkim/global.key
opendkim-testkey: checking key 'dkim1._domainkey.iwtelecom.com.br 
'
*opendkim-testkey: 'dkim1._domainkey.iwtelecom.com.br 
' record not found*


I created the record in the domain zone like bellow:

dkim1._domainkey IN  TXT "v=DKIM1; k=rsa; p=bla...bla"

But it does not work when I try to resolve it:

dig dkim1._domainkey.iwtelecom.com.br 



And it is not shown when I try:

dig +noall +answer iwtelecom.com.br  any

Only the SPF record... I used the named-checkzone and everything 
looks fine, what am I doind wrong?




--
Eric Broch
White Horse Technical Consulting (WHTC)

--
Eric Broch
White Horse Technical Consulting (WHTC)




Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Leonardo - IW Telecom
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)


Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Remo Mattei
I use one I will need to check which one. I know I have tested several of them 
and ended up only this being great!

Remo 

> On Jan 22, 2019, at 06:15, Eric Broch  wrote:
> 
> 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)



Re: [qmailtoaster] dkim1._domainkey record not found

2019-01-22 Thread Remo Mattei
I am pretty sure you have something miss-configured. 

I have this working but you also need to see if you have the default correct. I 
will share what I have done and I know it works since I have done it in 2 
servers now.

Remo 

> On Jan 22, 2019, at 03:36, Leonardo Porto  wrote:
> 
> Bingo.
> 
> This machine was using my authoritative slave and for some reason it did not 
> update the zone yet.
> I changed the resolver then:
> 
> opendkim-testkey: checking key 'dkim1._domainkey.iwtelecom.com.br'
> opendkim-testkey: key OK
> 
> But I found something else: when I send a message the destination server is 
> not checking my sender's domain key, it is checking my server's hostname 
> instead, wich is app1.iw.net.br.
> 
> So I had to create to more records: dkim1._domainkey.iw.net.br and 
> dkim1._domainkey.app1.iw.net.br
> 
> Now Gmail says DKIM is ok: 
> 
> DKIM:'PASS' com o domínio app1.iw.net.br
> 
> 
> 
> Em 21/01/2019 20:47, Eric Broch escreveu:
>> I figured it out at least on my host as to why one would get 'record not 
>> found'.
>> 
>> My mail host has entry in resolv.conf 'nameserver 127.0.0.1'
>> 
>> I have named config file for my domain to resolve to this mail host, 
>> 192.168.x.x
>> 
>> running 
>> 
>> # opendkim-testkey -vvv -d whitehorsetc.com  -k 
>> /var/qmail/control/dkim/whitehorsetc.com.key -s dkim1
>> 
>> yields 'record not found'
>> 
>> when I change resolv.conf to external nameserver (8.8.8.8)
>> 
>> # opendkim-testkey -vvv -d whitehorsetc.com  -k 
>> /var/qmail/control/dkim/whitehorsetc.com.key -s dkim1
>> 
>> yields 'key OK'
>> 
>> You must add a TXT record to whichever DNS server your mail host is using.
>> 
>> On 1/21/2019 10:41 AM, Eric Broch wrote:
>>> Maybe restart your named server.
>>> 
>>> On 1/21/2019 4:58 AM, Leonardo Porto wrote:
 Looks like I was checking it the wrong way, the correct is:
 
 # dig dkim1._domainkey.iwtelecom.com.br TXT
 ;; ANSWER SECTION:
 dkim1._domainkey.iwtelecom.com.br. 86400 IN TXT "v=DKIM1\; k=rsa\; 
 p=blabla...blabla"
 
 Checking the key at https://dkimcore.org/tools/ 
  looks fine also.
 
 The opendkim-testkey still shows the error though.
 
 
 
 Em 17/01/2019 18:30, Leonardo Porto escreveu:
> Hi everyone,
> 
> I'm doing the DKIM step for a new server and when I test my DKIM 
> signature I receive the error:
> 
> # opendkim-testkey - -d iwtelecom.com.br  -k 
> /var/qmail/control/dkim/global.key -s dkim1
> opendkim-testkey: using default configfile /etc/opendkim.conf
> opendkim-testkey: /var/qmail/control/dkim/global.key: WARNING: unsafe 
> permissions
> opendkim-testkey: key loaded from /var/qmail/control/dkim/global.key
> opendkim-testkey: checking key 'dkim1._domainkey.iwtelecom.com.br'
> opendkim-testkey: 'dkim1._domainkey.iwtelecom.com.br' record not found
> 
> I created the record in the domain zone like bellow:
> 
> dkim1._domainkeyIN  TXT "v=DKIM1; k=rsa; 
> p=bla...bla"
> 
> But it does not work when I try to resolve it:
> 
> dig dkim1._domainkey.iwtelecom.com.br
> 
> And it is not shown when I try:
> 
> dig +noall +answer iwtelecom.com.br any
> 
> Only the SPF record... I used the named-checkzone and everything looks 
> fine, what am I doind wrong?
> 
> 
> 
>>> -- 
>>> Eric Broch
>>> White Horse Technical Consulting (WHTC)
>> -- 
>> Eric Broch
>> White Horse Technical Consulting (WHTC)



Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Eric Broch
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)



Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Remo Mattei
I have it using the password where I can change user’s password let me look at 
my code, I know that it’s operational. 

Remo 

> On Jan 22, 2019, at 07:01, Eric Broch  wrote:
> 
> 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)



Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Remo Mattei
I use the default password plugin here is the config I did


 On Jan 22, 2019, at 07:01, Eric Broch  wrote:
> 
> 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)



Re: [qmailtoaster] roundcube password plugin

2019-01-22 Thread Remo Mattei
Of course you still need to have the queries for the db. 

$rcmail_config['password_driver'] = 'sql';
$rcmail_config['password_db_dsn'] = 
'mysql://vpopmail:your_vpopmail_password@localhost/vpopmail';
$rcmail_config['password_query'] ='update your_domain set 
pw_passwd=ENCRYPT(%p,concat(_utf8\'$1$\',right(md5(rand()),8),_utf8\'$\')),pw_clear_passwd=%p
 where pw_name=%l’; 



> On Jan 22, 2019, at 07:01, Eric Broch  wrote:
> 
> 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)