Mail server, virtualni korisnici, UBUNTU

Linux, poslužitelj, mreže i sigurnost

Moderator/ica: Moderatori/ce

Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la glaskoncILLa »

pa duboko vjerujem da neki file ipak ima sto ce se vjerovatno potvrditi ako napravis grep -R "$inet_socket_port = 10024" /etc/amavis/*

ali ok, to je trenutno manje vazno jer je tvoj problem jer se amavis ne starta zato jer ne moze citati /dev/null i zato ti se i javljaju ti errori.

daj ls-l /dev/null
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
dalibor.klobucaric
Postovi: 1278
Pridružen/a: 17 ožu 2008, 09:35
Spol: M
OS: ubuntu 16
Lokacija: Čakovec
Kontakt:

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la dalibor.klobucaric »

Kod: Označi sve

root@server:/dev# ls -l /dev/null
crw------- 1 root root 1, 3 2009-12-11 13:30 /dev/null
Because Open Source Matters
--
Sites - Under construction
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la glaskoncILLa »

eto, uvidjas li svoj problem?
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
dalibor.klobucaric
Postovi: 1278
Pridružen/a: 17 ožu 2008, 09:35
Spol: M
OS: ubuntu 16
Lokacija: Čakovec
Kontakt:

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la dalibor.klobucaric »

da al neznam kak ga složiti

ovak?
Check this by logging in as root
and listing it with the command:
ls -l /dev/null
You should see this if everything is correctly
set:
crw-rw-rw- 1 root root 1, 3

If you get a different set of permissions like
this maybe:
-rw-r--r-- 1 root root 1, 3

then you should (as root) delete the /dev/null with:
rm /dev/null

and recreate it (as root) again with:
mknod -m 0666 /dev/null c 1 3
Because Open Source Matters
--
Sites - Under construction
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la glaskoncILLa »

:)

mislio sam da li uvidjas rjesenje?

pod koji userom bi se amavis trebao vrtjeti?

sto taj user moze sa /dev/null?


edit: da, otrpilike tako,
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
dalibor.klobucaric
Postovi: 1278
Pridružen/a: 17 ožu 2008, 09:35
Spol: M
OS: ubuntu 16
Lokacija: Čakovec
Kontakt:

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la dalibor.klobucaric »

Ok upalil mi se camv i amavis
idem resetirati logove pa vidi kaj se dalje događa?
ili imaš li kakvo riješenje?
Because Open Source Matters
--
Sites - Under construction
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la glaskoncILLa »

rjesenje cega? pregledaj prvo da li sve radi.
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
dalibor.klobucaric
Postovi: 1278
Pridružen/a: 17 ožu 2008, 09:35
Spol: M
OS: ubuntu 16
Lokacija: Čakovec
Kontakt:

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la dalibor.klobucaric »

ok pokušal sam si poslati pak mail sa mailx-om
i log mi sad izgleda ovak

Kod: Označi sve

root@server:~# tail /var/log/mail.log
Dec 26 17:26:17 server authdaemond: Installation complete: authmysql
Dec 26 17:26:18 server postfix/master[19691]: daemon started -- version 2.5.5, configuration /etc/postfix
Dec 26 17:26:18 server postfix/qmgr[19693]: 3CF8C2440853: from=<smmsp@server.bluestuff.org>, size=706, nrcpt=1 (queue active)
Dec 26 17:26:18 server postfix/smtp[19700]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Dec 26 17:26:18 server postfix/smtp[19700]: 3CF8C2440853: to=<root@server.bluestuff.org>, orig_to=<root>, relay=none, delay=377, delays=377/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Dec 26 17:29:08 server postfix/pickup[19694]: DADC12440856: uid=0 from=<root>
Dec 26 17:29:08 server postfix/cleanup[23724]: DADC12440856: message-id=<20091226162908.DADC12440856@server.bluestuff.org>
Dec 26 17:29:08 server postfix/qmgr[19693]: DADC12440856: from=<root@server.bluestuff.org>, size=321, nrcpt=1 (queue active)
Dec 26 17:29:08 server postfix/smtp[23727]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Dec 26 17:29:08 server postfix/smtp[23727]: DADC12440856: to=<info@bluestuff.org>, relay=none, delay=0.06, delays=0.06/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
edit:
port je očito u banani ne?

Kod: Označi sve

root@server:~# nmap 127.0.0.1

Starting Nmap 4.76 ( http://nmap.org ) at 2009-12-26 17:31 CET
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 986 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
25/tcp    open  smtp
53/tcp    open  domain
80/tcp    open  http
110/tcp   open  pop3
139/tcp   open  netbios-ssn
143/tcp   open  imap
443/tcp   open  https
445/tcp   open  microsoft-ds
666/tcp   open  doom
993/tcp   open  imaps
995/tcp   open  pop3s
3306/tcp  open  mysql
10025/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds

i još uvijek je problem ovdje

Kod: Označi sve

root@server:~# telnet localhost 10024
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
kaj još moram provijeriti?
Because Open Source Matters
--
Sites - Under construction
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la glaskoncILLa »

sto kaze /etc/init.d/amavis restart?
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
dalibor.klobucaric
Postovi: 1278
Pridružen/a: 17 ožu 2008, 09:35
Spol: M
OS: ubuntu 16
Lokacija: Čakovec
Kontakt:

Re: Mail server, virtualni korisnici, UBUNTU

Post Postao/la dalibor.klobucaric »

Kod: Označi sve

root@server:~# /etc/init.d/amavis restart
Stopping amavisd: amavisd-new.
Starting amavisd: amavisd-new.
Bit će da je ok ne?

Kod: Označi sve

root@server:~# telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
ehlo localhost
250-[127.0.0.1]
250-VRFY
250-PIPELINING
250-SIZE
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 XFORWARD NAME ADDR PORT PROTO HELO SOURCE
quit
221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel
Connection closed by foreign host.

pokušavam se spojiti prek klienta
still dobijam error

ERROR: Connection dropped by IMAP server.
mail.info

Kod: Označi sve

root@server:~# tail /var/log/mail.info
Dec 26 18:21:43 server amavis[3421]: (03421-01) Passed CLEAN, <root@server.bluestuff.org> -> <info@bluestuff.org>, Message-ID: <20091226172130.C65CA244085B@server.bluestuff.org>, mail_id: u0c9m8dQkLom, Hits: 1.406, size: 317, queued_as: 3C2E32440855, 12431 ms
Dec 26 18:21:43 server postfix/smtp[5950]: C65CA244085B: to=<info@bluestuff.org>, relay=127.0.0.1[127.0.0.1]:10024, delay=12, delays=0.03/0/0/12, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=03421-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3C2E32440855)
Dec 26 18:21:43 server postfix/qmgr[19693]: C65CA244085B: removed
Dec 26 18:21:43 server postfix/smtp[6047]: 3C2E32440855: to=<info@bluestuff.org>, relay=none, delay=0.03, delays=0.01/0.03/0/0, dsn=5.4.6, status=bounced (mail for mail.bluestuff.org loops back to myself)
Dec 26 18:21:43 server postfix/cleanup[3838]: 46122244085C: message-id=<20091226172143.46122244085C@server.bluestuff.org>
Dec 26 18:21:43 server postfix/bounce[6048]: 3C2E32440855: sender non-delivery notification: 46122244085C
Dec 26 18:21:43 server postfix/qmgr[19693]: 3C2E32440855: removed
Dec 26 18:21:43 server postfix/qmgr[19693]: 46122244085C: from=<>, size=2710, nrcpt=1 (queue active)
Dec 26 18:21:43 server postfix/local[6049]: 46122244085C: to=<root@server.bluestuff.org>, relay=local, delay=0.02, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Dec 26 18:21:43 server postfix/qmgr[19693]: 46122244085C: removed
mail.log file

Kod: Označi sve

root@server:~# tail /var/log/mail.log
Dec 26 18:21:43 server postfix/bounce[6048]: 3C2E32440855: sender non-delivery notification: 46122244085C
Dec 26 18:21:43 server postfix/qmgr[19693]: 3C2E32440855: removed
Dec 26 18:21:43 server postfix/qmgr[19693]: 46122244085C: from=<>, size=2710, nrcpt=1 (queue active)
Dec 26 18:21:43 server postfix/local[6049]: 46122244085C: to=<root@server.bluestuff.org>, relay=local, delay=0.02, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Dec 26 18:21:43 server postfix/qmgr[19693]: 46122244085C: removed
Dec 26 18:25:19 server imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 26 18:26:18 server postfix/qmgr[19693]: B81732289E9B: from=<smmsp@server.bluestuff.org>, size=706, nrcpt=1 (queue active)
Dec 26 18:26:18 server postfix/qmgr[19693]: 9B0E62440859: from=<amavis@server.bluestuff.org>, size=669, nrcpt=1 (queue active)
Dec 26 18:26:18 server postfix/qmgr[19693]: A7CF0244085A: from=<smmsp@server.bluestuff.org>, size=706, nrcpt=1 (queue active)
Dec 26 18:26:18 server postfix/qmgr[19693]: 2E3122440852: from=<smmsp@server.bluestuff.org>, size=706, nrcpt=1 (queue active)
Because Open Source Matters
--
Sites - Under construction
Odgovori