[Valvula] Valvula not being able to detect postfix mysql config -- Re: Hola!

Yosu Cadilla ツ yosu.cadilla en gmail.com
Mar Ago 29 16:23:34 CEST 2017


Here's my main.cf full file:

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
#delay_warning_time = 4h
readme_directory = no


inet_interfaces = all
inet_protocols = ipv4


myhostname = my.domain.com
mydomain = my.domain
myorigin = /etc/mailname
mydestination = my.domain.com, domain.com, localhost.localdomain, localhost
mynetworks = 123.123.123.123 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128


smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated
defer_unauth_destination
relay_domains =
#smtpd_relay_restrictions =


milter_protocol = 6
milter_default_action = accept
smtpd_milters = inet:localhost:12301
non_smtpd_milters = inet:localhost:12301
#smtpd_milters = unix:/spamass/spamass.sock, inet:localhost:12301
#non_smtpd_milters = unix:/spamass/spamass.sock, inet:localhost:12301


local_recipient_maps = proxy:unix:passwd.byname $alias_maps
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#local_recipient_maps =


# SASL SUPPORT FOR CLIENTS
#smtpd_sasl_auth_enable = yes
#smtpd_sasl_security_options = noanonymous
#smtpd_sasl_local_domain = $myhostname
#broken_sasl_auth_clients = yes


# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

mailbox_size_limit = 0
recipient_delimiter = +

smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:3579,
permit_mynetworks, reject_unauth_destination




Best, Yosu Cadilla ツ

Consultor de màrqueting @ Collita Digital - http://www.collitadigital.cat
CMO @ low-cost.marketing - http://low-cost.marketing/
Content Engineer @ Content.engineering  -  http://content.engineering/
Facilitator for CloudCamp in Europe and LATAM.

Phone: (+34) 693 481 365
Skype: new_yosu
Twitter: @_YC




On 29 August 2017 at 10:13, Francis Brosnan Blázquez <
francis.brosnan en aspl.es> wrote:

> Hello Yosu.
>
> The relevant error here is "Split operation for (null) failed and
> reported NULL, unable to continue".
>
> This is an error happening at
> *valvulad_run_check_local_domains_config_detect_postfix_decl.*
>
> Please post the content of the following variables at your postfix
> /etc/postfix/main.cf :
>
> - virtual_mailbox_domains
> - virtual_alias_maps
> - virtual_mailbox_maps
> - local_recipient_maps
>
> At the same time, I've updated source code to better report that
> valvulad is not being able to detect your mysql configuration by
> automatically parsing those variables above:
>
> + if (path == NULL) {
> + wrn ("Unable to find mysql: declaration inside postfix declaration: %s
> (skipping mysql detection to next)", postfix_decl);
> + return axl_false;
> + } /* end if */
> +
>
>
> Regards.
>
>
>
>
> El mar, 29-08-2017 a las 05:20 +0200, Yosu Cadilla ツ escribió:
>
> root en smtp:/# service valvulad restart
>
> Job for valvulad.service failed because a fatal signal was delivered to
> the control process. See "systemctl status valvulad.service" and
> "journalctl -xe" for details.
>
>
>
> systemctl status valvulad.service
>
> root en smtp:/# systemctl status valvulad.service
>
> ● valvulad.service - LSB: start and stop the valvulad server
>
>    Loaded: loaded (/etc/init.d/valvulad; bad; vendor preset: enabled)
>
>    Active: active (running) since Tue 2017-08-29 05:15:11 CEST; 35s ago
>
>      Docs: man:systemd-sysv-generator(8)
>
>   Process: 21688 ExecStop=/etc/init.d/valvulad stop (code=exited,
> status=0/SUCCESS)
>
>   Process: 21754 ExecStart=/etc/init.d/valvulad start (code=exited,
> status=0/SUCCESS)
>
>    CGroup: /system.slice/valvulad.service
>
>            └─21761 /usr/bin/valvulad --detach
>
>  **ERROR**: Split operation for (null) failed and reported NULL, unable to
> continue
>
> valvulad[21761]: Split operation for (null) failed and reported NULL,
> unable to continue
>
> valvulad[21761]: Updated smtpd_tls_session_cache_database ->
> btree:${data_directory}/smtpd_scache :  smtpd_tls_session_cache_database
> = btree:${data_directory}/smtpd_scache
>
> valvulad[21761]: Updated smtp_tls_session_cache_database ->
> btree:${data_directory}/smtp_scache :  smtp_tls_session_cache_database =
> btree:${data_directory}/smtp_scache
>
> valvulad[21761]: Registering my.domain.com..
>
> valvulad[21761]: Registering domain.com..
>
> valvulad[21761]: Registering localhost.localdomain..
>
> valvulad[21761]: Registering localhost..
>
> valvulad[21761]: Configuring request line limit to 80
>
> valvulad[21761]: Valvula server started, processing requests..
>
>
>
> Aqui ya me he quedado atascado...
>
>
>
>
>
>
>
>
>
>
> Best, Yosu Cadilla ツ
>
>
>
> Consultor de màrqueting @ Collita Digital - http://www.collitadigital.cat
>
> CMO @ low-cost.marketing - http://low-cost.marketing/
>
> Content Engineer @ Content.engineering  -  http://content.engineering/
>
> Facilitator for CloudCamp in Europe and LATAM.
>
>
> Phone: (+34) 693 481 365 <693%2048%2013%2065>
> Skype: new_yosu
>
> Twitter: @_YC
>
>
>
>
>
>
> On 29 August 2017 at 05:06, Yosu Cadilla ツ <yosu.cadilla en gmail.com>
> wrote:
>
> root en smtp:/# valvulad-mgr.py  -o
>
> Traceback (most recent call last):
>
>   File "/usr/bin/valvulad-mgr.py", line 39, in <module>
>
>     import axl
>
>   File "/usr/lib/python2.7/dist-packages/axl/__init__.py", line 5, in
> <module>
>
>     from libpy_axl import *
>
> ImportError: libpython2.7.so.1.0: cannot open shared object file: No such
> file or directory
>
>
>
> Solucion:
>
> apt-get install libpython2.7
>
>
>
>
>
>
>
>
> Best, Yosu Cadilla ツ
>
>
>
> Consultor de màrqueting @ Collita Digital - http://www.collitadigital.cat
>
> CMO @ low-cost.marketing - http://low-cost.marketing/
>
> Content Engineer @ Content.engineering  -  http://content.engineering/
>
> Facilitator for CloudCamp in Europe and LATAM.
>
>
> Phone: (+34) 693 481 365 <693%2048%2013%2065>
> Skype: new_yosu
>
> Twitter: @_YC
>
>
>
>
>
>
> On 29 August 2017 at 04:42, Yosu Cadilla ツ <yosu.cadilla en gmail.com>
> wrote:
>
> Hola, estoy intentando instalar valvula en un servidor postfix, despues de
> instalarlo y configurar la DB, ejecuto:
>
>
>
> valvulad -b
>
>
>
> y obtengo el siguiente error:
>
> valvulad: error while loading shared libraries: libmysqlclient.so.20:
> cannot open shared object file: No such file or directory
>
>
> Google no retorna nada util y si ejecuto
>
>
>
>  sudo find ./ | grep libmysqlclient.so
>
>
>
> No retorna nada de nada...
>
> Solucionado...
>
>
>
> sudo apt-get install libmysqlclient-dev
>
>
>
> Deberiais poner una nota en la docu.
>
>
>
>
>
>
>
>
> Best, Yosu Cadilla ツ
>
>
>
> Consultor de màrqueting @ Collita Digital - http://www.collitadigital.cat
>
> CMO @ low-cost.marketing - http://low-cost.marketing/
>
> Content Engineer @ Content.engineering  -  http://content.engineering/
>
> Facilitator for CloudCamp in Europe and LATAM.
>
>
> Phone: (+34) 693 481 365 <693%2048%2013%2065>
> Skype: new_yosu
>
> Twitter: @_YC
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Valvula mailing listValvula en lists.aspl.eshttp://lists.aspl.es/cgi-bin/mailman/listinfo/valvula
>
>
> --
> Francis Brosnan Blázquez  -  ASPLhttp://www.asplhosting.com/http://www.aspl.es/https://twitter.com/aspl_eshttps://twitter.com/asplhostinghttps://twitter.com/francisbrosnanbhttps://es.linkedin.com/in/francis-brosnan-blázquez-1353a218
> 91 134 14 22 <911%2034%2014%2022> - 91 134 14 45 <911%2034%2014%2045> - 91 116 07 57 <911%2016%2007%2057>
> Av. Juan Carlos I 13, 2ºC, Torre Garena
> 28806 - Alcalá de Henares (España)
>
> AVISO LEGAL
>
> En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
> diciembre, de Protección de Datos de Carácter Personal, le informamos de
> que sus datos de carácter personal, recogidos de fuentes accesibles al
> público o datos que usted nos ha facilitado previamente, proceden de
> bases de datos propiedad de Advanced Software Production Line, S.L.
> (ASPL).
>
> ASPL garantiza que los datos serán tratados con la finalidad de mantener
> las oportunas relaciones comerciales o promocionales con usted o la
> entidad que usted representa. No obstante, usted puede ejercitar sus
> derechos de acceso, rectificación, cancelación y oposición dispuestos en
> la mencionada Ley Orgánica, notificándolo por escrito a ASPL -
> Protección Datos, Av. Juan Carlos I 13, 2ºC, Alcalá de Henares
> (Madrid).
>
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.aspl.es/pipermail/valvula/attachments/20170829/e524ab45/attachment-0001.html>


Más información sobre la lista de distribución Valvula