dpkg: error processing postfix (--configure)
Thufir
hawat.thufir at gmail.com
Sun Aug 26 00:03:54 UTC 2012
Ok, I *think* that postfix installed correctly(?):
root at dur:/etc/postfix#
root at dur:/etc/postfix# aptitude install -y mysqmail-postfix-logger
postfix-mysql mailutils
The following NEW packages will be installed:
mailutils mysqmail{a} mysqmail-postfix-logger
The following partially installed packages will be configured:
postfix postfix-mysql
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/422 kB of archives. After unpacking 1,256 kB will be used.
Preconfiguring packages ...
The postinstallation script of MySQMail couldn't find /var/lib/dtc/
saved_install_config
you will need to run dpkg-reconfigure mysqmail once DTC is installed in
order to have
mysqmail working. I will exit silently but you MUST do the above.
Selecting previously unselected package mailutils.
(Reading database ... 224282 files and directories currently installed.)
Unpacking mailutils (from .../mailutils_1%3a2.2+dfsg1-5_i386.deb) ...
Selecting previously unselected package mysqmail.
Unpacking mysqmail (from .../mysqmail_0.4.9-7build1_all.deb) ...
Selecting previously unselected package mysqmail-postfix-logger.
Unpacking mysqmail-postfix-logger (from .../mysqmail-postfix-
logger_0.4.9-7build1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up postfix (2.9.1-4) ...
Postfix configuration was not changed. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix
configuration
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.
Running newaliases
* Stopping Postfix Mail Transport Agent
postfix [ OK ]
* Starting Postfix Mail Transport Agent
postfix [ OK ]
Setting up postfix-mysql (2.9.1-4) ...
Setting up mailutils (1:2.2+dfsg1-5) ...
update-alternatives: using /usr/bin/frm.mailutils to provide /usr/bin/frm
(frm) in auto mode.
update-alternatives: using /usr/bin/from.mailutils to provide /usr/bin/
from (from) in auto mode.
update-alternatives: using /usr/bin/messages.mailutils to provide /usr/
bin/messages (messages) in auto mode.
update-alternatives: using /usr/bin/movemail.mailutils to provide /usr/
bin/movemail (movemail) in auto mode.
update-alternatives: using /usr/bin/readmsg.mailutils to provide /usr/bin/
readmsg (readmsg) in auto mode.
update-alternatives: using /usr/bin/dotlock.mailutils to provide /usr/bin/
dotlock (dotlock) in auto mode.
update-alternatives: using /usr/bin/mail.mailutils to provide /usr/bin/
mailx (mailx) in auto mode.
Setting up mysqmail (0.4.9-7build1) ...
The postinstallation script of MySQMail couldn't find /var/lib/dtc/
saved_install_config
you will need to run dpkg-reconfigure mysqmail once DTC is installed in
order to have
mysqmail working. I will exit silently but you MUST do the above.
MySQL debconf configuration missing: will silently exit now.
Please do dpkg-reconfigure mysqmail once DTC is installed in
order to have mysqmail working.
Setting up mysqmail-postfix-logger (0.4.9-7build1) ...
/etc/mysqmail.conf not present: exiting silently
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root at dur:/etc/postfix#
root at dur:/etc/postfix#
I replaced /etc/postfix/main.cf with a backup:
root at dur:/etc/postfix#
root at dur:/etc/postfix# diff main.cf main.cf.2
7c7
< #myorigin = /etc/mailname
---
> myorigin = /etc/mailname
40a41,94
>
>
>
> ###adding###
>
>
> # Requirements for the HELO statement
> smtpd_helo_restrictions = permit_mynetworks, warn_if_reject
reject_non_fqdn_hostname, reject_invalid_hostname, permit
> # Requirements for the sender details
> smtpd_sender_restrictions = permit_mynetworks, warn_if_reject
reject_non_fqdn_sender, reject_unknown_sender_domain,
reject_unauth_pipelining, permit
> # Requirements for the connecting server
> smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org,
reject_rbl_client blackholes.easynet.nl, reject_rbl_client dnsbl.njabl.org
> # Requirement for the recipient address
> smtpd_recipient_restrictions = reject_unauth_pipelining,
permit_mynetworks, reject_non_fqdn_recipient,
reject_unknown_recipient_domain, reject_unauth_destination, permit
smtpd_data_restrictions = reject_unauth_pipelining
>
>
>
>
> # require proper helo at connections
> # smtpd_helo_required = yes
> # waste spammers time before rejecting them
> # smtpd_delay_reject = yes
> # disable_vrfy_command = yes
>
>
>
> # not sure of the difference of the next two
> # but they are needed for local aliasing
> alias_maps = hash:/etc/postfix/aliases
> alias_database = hash:/etc/postfix/aliases
> # this specifies where the virtual mailbox folders will be located
> virtual_mailbox_base = /var/spool/mail/virtual
> # this is for the mailbox location for each user
> virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
> # and this is for aliases virtual_alias_maps = mysql:/etc/postfix/
mysql_alias.cf
> # and this is for domain lookups virtual_mailbox_domains = mysql:/etc/
postfix/mysql_domains.cf
> # this is how to connect to the domains (all virtual, but the option is
there)
> # not used yet
> # transport_maps = mysql:/etc/postfix/mysql_transport.cf
>
>
> virtual_uid_maps = static:5000
> virtual_gid_maps = static:5000
>
>
>
>
>
> # to add if there is not a virtual user
> # sudo mkdir /var/spool/mail/virtual sudo groupadd --system virtual -g
5000
> # sudo useradd --system virtual -u 5000 -g 5000
> # sudo chown -R virtual:virtual /var/spool/mail/virtual
>
> inet_protocols = ipv4
root at dur:/etc/postfix#
I had completely forgotten about changing that file. For now, at least,
is postfix installed correctly?
thanks,
Thufir
More information about the ubuntu-users
mailing list