From: roger pedrol on
Hi all,

Maybe not related to postfix but Ubuntu dpkg but trying to install SPF I
came across this problem:

Configuring postfix (2.5.1-2ubuntu1.2) ...

Running newaliases
postalias: fatal: can't create maps via the proxy service
dpkg: error al procesar postfix (--configure):
el subproceso post-installation script devolvi� el c�digo de salida de
error 1


neenux(a)obi:/etc/postfix$ postconf -n

alias_database = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
inet_interfaces = all
mailbox_size_limit = 0
message_size_limit = 50480000
mydestination = ubu, localhost.localdomain, localhost
myhostname = mas.neenux.com
mynetworks = 127.0.0.0/8, 192.168.1.254
myorigin = /etc/mailname
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_sasl_security_options =
smtp_sasl_type = cyrus
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated, check_helo_access
hash:/etc/postfix/blacklist, reject_invalid_hostname,
reject_unauth_destination
smtpd_recipient_restrictions = permit_sasl_authenticated,
reject_invalid_hostname, check_sender_access
hash:/etc/postfix/sender_access, reject_unauth_destination,
permit_mynetworks, reject_rbl_client zen.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth-client
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /vmail
virtual_mailbox_domains =
proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps =
proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:5000


Any help would be apreciated.

Roger Pedrol

From: Noel Jones on
On 3/15/2010 7:58 PM, roger pedrol wrote:
> Hi all,
>
> Maybe not related to postfix but Ubuntu dpkg but trying to install SPF I
> came across this problem:
>
> Configuring postfix (2.5.1-2ubuntu1.2) ...
>
> Running newaliases
> postalias: fatal: can't create maps via the proxy service
> dpkg: error al procesar postfix (--configure):
> el subproceso post-installation script devolvió el código de salida de
> error 1
>

The newaliases command is to rebuild alias maps listed in the
alias_database parameter.

Don't list sql maps (or other non-DB maps) in the
alias_database parameter.

Since you aren't using any DB maps, there is no need for you
to ever run newaliases.


>
> neenux(a)obi:/etc/postfix$ postconf -n
>
> alias_database = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf

Change the above to
alias_database =



-- Noel Jones

From: mouss on
Noel Jones a �crit :
> On 3/15/2010 7:58 PM, roger pedrol wrote:
>> Hi all,
>>
>> Maybe not related to postfix but Ubuntu dpkg but trying to install SPF I
>> came across this problem:
>>
>> Configuring postfix (2.5.1-2ubuntu1.2) ...
>>
>> Running newaliases
>> postalias: fatal: can't create maps via the proxy service
>> dpkg: error al procesar postfix (--configure):
>> el subproceso post-installation script devolvi� el c�digo de salida de
>> error 1
>>
>
> The newaliases command is to rebuild alias maps listed in the
> alias_database parameter.
>
> Don't list sql maps (or other non-DB maps) in the alias_database parameter.
>
> Since you aren't using any DB maps, there is no need for you to ever run
> newaliases.
>

I'd suggest deprecating the newaliases command.

>
>>
>> neenux(a)obi:/etc/postfix$ postconf -n
>>
>> alias_database = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
>
> Change the above to
> alias_database =
>
>
>
> -- Noel Jones
>