Debian 12 instalacja i konfiguracja POSTFIXA

Konfiguracja serwerów, usług, itp.
Awatar użytkownika
sp5smy
Posty: 25
Rejestracja: 12 listopada 2014, 16:01
Lokalizacja: Siedlce, Poland
Kontakt:

Debian 12 instalacja i konfiguracja POSTFIXA

Post autor: sp5smy »

Szukam pomocnej duszy w konfiguracji POSTFIXA. Na razie mam zainstalowani i w części skonfigurowany. Przy uruchomieniu
"root@debianSwewer /home/kamil 21:22:40 # sudo systemctl restart postfix
Job for postfix.service failed because the control process exited with error code.
See "systemctl status postfix.service" and "journalctl -xeu postfix.service" for details."
Do dyspozycji iwebadmi.
Awatar użytkownika
Yampress
Administrator
Posty: 6426
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Re: Debian 12 instalacja i konfiguracja POSTFIXA

Post autor: Yampress »

sp5smy pisze: See "systemctl status postfix.service" and "journalctl -xeu postfix.service" for details."
Wydałeś te dwa polecenia? Jak coś nie chce wystartować , albo startuje z błędami to zawsze patrzysz w logi co go boli. Tam najczęściej jest wyjaśnione w w czym problem.
Awatar użytkownika
sp5smy
Posty: 25
Rejestracja: 12 listopada 2014, 16:01
Lokalizacja: Siedlce, Poland
Kontakt:

Re: Debian 12 instalacja i konfiguracja POSTFIXA

Post autor: sp5smy »

Fragment /var/log/mail
2025-06-25T06:06:52.095583+02:00 debianSwewer postfix/qmgr[1471814]: 109D6C000A3: removed
2025-06-25T06:06:52.100120+02:00 debianSwewer postfix/bounce[1625201]: 0DB25C0003F: sender non-delivery notification: 150FDC0027D
2025-06-25T06:06:52.100996+02:00 debianSwewer postfix/qmgr[1471814]: 0DB25C0003F: removed
2025-06-25T06:06:52.101585+02:00 debianSwewer postfix/local[1625207]: 14C67C0020B: to=<user3@hostdomowy.pl>, orig_to=<pawel@hostdomowy.pl>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "user3")
2025-06-25T06:06:52.101903+02:00 debianSwewer postfix/local[1625204]: 150FDC0027D: to=<user3@hostdomowy.pl>, orig_to=<root@hostdomowy.pl>, relay=local, delay=0.02, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (unknown user: "user3")
2025-06-25T06:06:52.103193+02:00 debianSwewer postfix/qmgr[1471814]: 150FDC0027D: removed
2025-06-25T06:06:52.104493+02:00 debianSwewer postfix/qmgr[1471814]: 14C67C0020B: removed
2025-06-25T06:08:01.257361+02:00 debianSwewer postfix/postmap[1625679]: fatal: usage: postmap [-bfFhimnNoprsuUvw] [-c config_dir] [-d key] [-q key] [map_type:]file...
2025-06-25T06:09:20.079930+02:00 debianSwewer postfix/postfix-script[1626282]: fatal: the Postfix mail system is already running
2025-06-25T06:09:21.204818+02:00 debianSwewer postfix/postfix-script[1626294]: fatal: the Postfix mail system is already running
#########################################################################

dodałem brakujący plik
nano /etc/postfix/virtual.db
wynik
root@debianSwewer /var/log 06:13:26 # postmap -q root@hostdomowy.pl hash:/etc/postfix/virtual
root@debianSwewer /var/log 06:13:43 #
Awatar użytkownika
sp5smy
Posty: 25
Rejestracja: 12 listopada 2014, 16:01
Lokalizacja: Siedlce, Poland
Kontakt:

Re: Debian 12 instalacja i konfiguracja POSTFIXA

Post autor: sp5smy »

No chyba się udało ;)
pawel@debianSwewer ~ 14:21:21 $ ps aux | grep postfix
root 994668 0.0 0.0 43092 4884 ? Ss cze24 0:27 /usr/lib/postfix/sbin/master -w
postfix 1646963 0.0 0.0 43224 6864 ? S cze25 0:00 qmgr -l -t unix -u
postfix 2329570 0.0 0.0 43108 6800 ? S 12:35 0:03 pickup -l -t unix -u -c
postfix 2372697 0.0 0.0 43120 6948 ? S 14:16 0:00 trivial-rewrite -n rewrite -t unix -u -c
postfix 2374571 0.0 0.0 43204 6988 ? S 14:20 0:00 cleanup -z -t unix -u -c
postfix 2374572 0.0 0.0 43204 6968 ? S 14:20 0:00 cleanup -z -t unix -u -c
postfix 2374573 0.0 0.0 43204 6992 ? S 14:20 0:00 cleanup -z -t unix -u -c
pawel 2375079 0.0 0.0 6356 2132 pts/0 S+ 14:21 0:00 grep --color=auto postfix
Awatar użytkownika
Yampress
Administrator
Posty: 6426
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Re: Debian 12 instalacja i konfiguracja POSTFIXA

Post autor: Yampress »

To następnym razem, gdy coś nie działa patrzy w logi i szuka po internecie odpowiedzi aby samemu problem rozwiązać. A jak się nie uda i brak pomyslów to pyta na forum.
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2342
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Re: Debian 12 instalacja i konfiguracja POSTFIXA

Post autor: LordRuthwen »

No, to teraz proszę go ładnie zabezpieczyć, żeby nie siał po sieci :)
ODPOWIEDZ