|
Debian Etch i Postfix
alaraf - 25-04-2008 00:54
Jakiś czas temu postawiłem serwer pocztowy na Trustix-ie, ale dystrybucja niestety umarła (a wielka szkoda). Szukałem jakiejś alternatywy i padło na Debiana.
Zainstalowałem Etcha i zabrałem się za konfigurację Postfixa. ÂŻeby ułatwić sobie pracę poszukałem jakiegoś HowTo i znalazłem stronę Debian Admin. Niestety, coś nie wyszło z SASL2 i postanowiłem wszystko odinstalować przez aptitude. Potem ręcznie wywaliłem katalogi, które uznałem za zbędne po deinstalacji pakietów (/etc/postfix i /etc/dovecot).
Spróbowałem ponownie zainstalować postfixa, ale nie udało się. Zinstalowałem więc ponownie exim4 z nadzieją, że wrócę do standardowego SMTP Debiana i wtedy instlacja Postfixa zastąpi exim4.
Nistety, podczas instalacji wywala mi:
orion:~# aptitude install postfix Reading package lists... Done Building dependency tree... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done Building tag database... Done The following packages are BROKEN: exim4 exim4-config The following packages will be automatically REMOVED: exim4-daemon-light The following NEW packages will be installed: postfix The following packages will be REMOVED: exim4-daemon-light 0 packages upgraded, 1 newly installed, 1 to remove and 0 not upgraded. Need to get 0B/1146kB of archives. After unpacking 1847kB will be used. The following packages have unmet dependencies: exim4-config: Conflicts: postfix but 2.3.8-2 is to be installed. exim4: Depends: exim4-daemon-light but it is not installable or exim4-daemon-heavy but it is not installable or exim4-daemon-custom which is a virtual package. Resolving dependencies... The following actions will resolve these dependencies:
Remove the following packages: exim4 exim4-base exim4-config
Score is -289
Accept this solution? [Y/n/q/?] y The following packages will be automatically REMOVED: exim4 exim4-base exim4-config exim4-daemon-light The following NEW packages will be installed: postfix The following packages will be REMOVED: exim4 exim4-base exim4-config exim4-daemon-light 0 packages upgraded, 1 newly installed, 4 to remove and 0 not upgraded. Need to get 0B/1146kB of archives. After unpacking 958kB will be freed. Do you want to continue? [Y/n/?] Writing extended state information... Done Preconfiguring packages ... (Reading database ... 22216 files and directories currently installed.) Removing exim4 ... dpkg: exim4-base: dependency problems, but removing anyway as you request: exim4-daemon-light depends on exim4-base (>= 4.63). Removing exim4-base ... Stopping MTA: exim4_listener. Removing exim4-config ... dpkg: exim4-daemon-light: dependency problems, but removing anyway as you request: at depends on mail-transport-agent; however: Package mail-transport-agent is not installed. Package ssmtp which provides mail-transport-agent is not installed. Package exim which provides mail-transport-agent is not installed. Package postfix which provides mail-transport-agent is not installed. Package exim4-daemon-light which provides mail-transport-agent is to be removed. Package xmail which provides mail-transport-agent is not installed. mutt depends on exim4 | mail-transport-agent; however: Package exim4 is not installed. Package mail-transport-agent is not installed. Package ssmtp which provides mail-transport-agent is not installed. Package exim which provides mail-transport-agent is not installed. Package postfix which provides mail-transport-agent is not installed. Package exim4-daemon-light which provides mail-transport-agent is to be removed. Package xmail which provides mail-transport-agent is not installed. Removing exim4-daemon-light ... Stopping MTA:. Selecting previously deselected package postfix. (Reading database ... 22079 files and directories currently installed.) Unpacking postfix (from .../postfix_2.3.8-2_amd64.deb) ... Setting up postfix (2.3.8-2) ...
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. Starting Postfix Mail Transport Agent: postfix/bin/sh: /etc/postfix/post-install: No such file or directory postfix/postfix-script: warning: unable to create missing queue directories postfix/postfix-script: fatal: Postfix integrity check failed! failed! invoke-rc.d: initscript postfix, action "restart" failed. dpkg: error processing postfix (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: postfix E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up postfix (2.3.8-2) ...
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. Starting Postfix Mail Transport Agent: postfix/bin/sh: /etc/postfix/post-install: No such file or directory postfix/postfix-script: warning: unable to create missing queue directories postfix/postfix-script: fatal: Postfix integrity check failed! failed! invoke-rc.d: initscript postfix, action "restart" failed. dpkg: error processing postfix (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: postfix orion:~#
Trochę zaczynam tracić ierpliwość do Debiana. Może ktos wie, o co chodzi instalatorowi?
Pozdrawiam, Adam
Yampress - 25-04-2008 07:46
wejdz do działu serwer tam jest przyklejony temat na samej górze, a w nim sprawdzony FAQ jak zainstalować postfixa. postępuj wg tego FAQ a postfix będzie działać na pewno :)
alaraf - 27-04-2008 20:55
wejdz do działu serwer tam jest przyklejony temat na samej górze, a w nim sprawdzony FAQ jak zainstalować postfixa. postępuj wg tego FAQ a postfix będzie działać na pewno :)
Dzięki, fajny HowTo. Postanowiłem przeinstalować system bo stwierdziłem, że zajmnie mi to mniej czasu, niż szukanie konfliktu w pakietach. Po reinstalacji systemu udało mi się zainstalować i skonfigurować Postfixa.
Jeżeli zaś chodzi o main.cf, to sugeruję jeszcze parę ustawień, które powinny trochę poprawić bezpieczenstwo: disable_vrfy_command = yes smtpd_sasl_tls_security_options = $smtpd_sasl_security_options smtpd_sasl_local_domain =
HowTo moim skromnym zdaniem wymaga kilku poprawek przy komentarzach: 1) smtpd_recipient_restrictions - ten parametr sprawdza adres odbiorcy, a nie nadawcy (RCPT TO:) 2) smtpd_sender_restrictions - ten natomiast sprawdzać adres nadawcy (MAIL FROM:) 3) smtpd_sasl_security_options - ten parametr ustawia dozwolone sposoby autoryzacji (a nie zabronione)
Jeżeli ktoś z Was ma jeszcze jakieś poropozycje połatania Postfixa, to napiszcie.
zanotowane.pldoc.pisz.plpdf.pisz.plminister.pev.pl
|