Zobrazit příspěvky

Tato sekce Vám umožňuje zobrazit všechny příspěvky tohoto uživatele. Prosím uvědomte si, že můžete vidět příspěvky pouze z oblastí Vám přístupných.


Témata - Maxximus999

Stran: [1]
1
Server / Nefunkční mailserver s Postfixem
« kdy: 13. 03. 2023, 20:07:51 »
Zdravim Vas, par dni mam problem s nastavenim mailservera. Nastavoval som podla návodu. Zatial je to najlepsi navod aky som nasiel. Po instalacii a nastaveni Postfixu to este odosielalo maily ale po nejakych nasatveniach dovcecotu to nefungovalo uz vobec.

Mail som skusal len z unix uzivatelskymi kontami, ktore mam na serveri. Virtualne konta zatial spravdzkovane logicky nemam. Sfunkcnil som Postfixadmin ale kedze domena mail.example.com nebola dostupna zvonku len na serveri ttak som to preinstaloval a nastavoval znova. Po prvej instalacii bola domena dostupna a dali sa vytvarat aliasy, konta aliasy domen a podobne. Kratky vypis z logu /var/log/mail.log.

Kód: [Vybrat]
Mar 13 19:44:04 mail dovecot: imap-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=167.94.146.59, lip=192.168.10.20, TLS: Connection closed, session=<IHzIfsz2GIqnXpI7>
Mar 13 19:35:10 mail postfix/anvil[11226]: statistics: max cache size 1 at Mar 13 19:31:50
Mar 13 19:35:10 mail postfix/anvil[11226]: statistics: max connection count 1 for (smtp:212.55.246.53) at Mar 13 19:31:50
Mar 13 19:35:10 mail postfix/anvil[11226]: statistics: max connection rate 1/60s for (smtp:212.55.246.53) at Mar 13 19:31:50
Mar 13 19:34:21 mail dovecot: imap-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=192.241.194.29, lip=192.168.10.20, session=<6XoOXMz2GMzA8cId>
Mar 13 19:31:50 mail postfix/qmgr[10092]: 738ED2402E5: removed
Mar 13 19:31:50 mail postfix/smtpd[11224]: disconnect from 235485.vt.adsl.slovanet.sk[212.55.246.53] ehlo=1 quit=1 commands=2
Mar 13 19:31:50 mail postfix/smtp[11222]: 738ED2402E5: to=<marian@mail.weblandic.com>, relay=mail.weblandic.com[212.55.246.53]:25, delay=348, delays=348/0.05/0.13/0, dsn=5.4.6, status=bounced (mail for mail.weblandic.com loops back to myself)
Mar 13 19:31:50 mail postfix/smtp[11222]: warning: host mail.weblandic.com[212.55.246.53]:25 replied to HELO/EHLO with my own hostname mail
Mar 13 19:31:50 mail postfix/smtp[11222]: warning: host mail.weblandic.com[212.55.246.53]:25 greeted me with my own hostname mail
Mar 13 19:31:50 mail postfix/smtpd[11224]: connect from 235485.vt.adsl.slovanet.sk[212.55.246.53]
Mar 13 19:31:50 mail postfix/qmgr[10092]: 738ED2402E5: from=<>, size=3335, nrcpt=1 (queue active)
Mar 13 19:26:50 mail postfix/lmtp[10097]: CA41A24123A: to=<marian@mail>, orig_to=<root@weblandic.com>, relay=mail[private/dovecot-lmtp], delay=13055, delays=13055/0.03/0.01/0, dsn=4.2.0, status=deferred (host mail[private/dovecot-lmtp] said: 451 4.2.0 <marian@mail> Internal error occurred. Refer to server log for more information. [2023-03-13 19:26:50] (in reply to end of DATA command))
Mar 13 19:26:50 mail dovecot: lmtp(9226): Disconnect from local: Logged out (state=READY)
Mar 13 19:26:50 mail dovecot: lmtp(marian)<9226><UDyaM+pqD2QKJAAA0J78UA>: msgid=<CAAHe+A+Vq3Xp_3dhjfOBtHoTzKcBQnJxUS1SkyJvmXvwb3Q7SQ@mail.gmail.com>: save failed to open mailbox INBOX: stat(/home/marian/Maildir/tmp) failed: Not a directory
Mar 13 19:26:50 mail dovecot: lmtp(marian)<9226><UDyaM+pqD2QKJAAA0J78UA>: Error: lmtp-server: conn unix:pid=10097,uid=133 [2]: rcpt marian@mail: stat(/home/marian/Maildir/tmp) failed: Not a directory
Mar 13 19:26:50 mail dovecot: lmtp(9226): Connect from local
Mar 13 19:26:50 mail postfix/local[10096]: CA41A24123A: passing <marian@mail> to transport=lmtp
Mar 13 19:26:50 mail postfix/qmgr[10092]: CA41A24123A: from=<marianl74@gmail.com>, size=3061, nrcpt=1 (queue active)
Mar 13 19:26:50 mail postfix/master[8283]: reload -- version 3.6.4, configuration /etc/postfix
Mar 13 19:26:50 mail postfix/postfix-script[10088]: refreshing the Postfix mail system
Mar 13 19:26:50 mail postfix/postfix-script[9904]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
Mar 13 19:26:50 mail postfix/postfix-script[9901]: warning: /var/spool/postfix/etc/hosts and /etc/hosts differ
Mar 13 19:26:02 mail postfix/lmtp[9225]: 738ED2402E5: to=<marian@mail.weblandic.com>, relay=mail.weblandic.com[private/dovecot-lmtp], delay=0.04, delays=0.01/0/0.02/0.02, dsn=4.2.0, status=deferred (host mail.weblandic.com[private/dovecot-lmtp] said: 451 4.2.0 <marian@mail.weblandic.com> Internal error occurred. Refer to server log for more information. [2023-03-13 19:26:02] (in reply to end of DATA command))
Mar 13 19:26:02 mail dovecot: lmtp(9226): Disconnect from local: Logged out (state=READY)
Mar 13 19:26:02 mail dovecot: lmtp(marian)<9226><RCe7HbpqD2QKJAAA0J78UA>: msgid=<20230313182602.738ED2402E5@mail.weblandic.com>: save failed to open mailbox INBOX: stat(/home/marian/Maildir/tmp) failed: Not a directory
Mar 13 19:26:02 mail dovecot: lmtp(marian)<9226><RCe7HbpqD2QKJAAA0J78UA>: Error: lmtp-server: conn unix:pid=9225,uid=133 [1]: rcpt marian@mail.weblandic.com: stat(/home/marian/Maildir/tmp) failed: Not a directory
Mar 13 19:26:02 mail dovecot: lmtp(9226): Connect from local
Mar 13 19:26:02 mail postfix/local[9224]: 738ED2402E5: passing <marian@mail.weblandic.com> to transport=lmtp
Mar 13 19:26:02 mail postfix/qmgr[8286]: D77182402E4: removed
Mar 13 19:26:02 mail postfix/qmgr[8286]: 738ED2402E5: from=<>, size=3335, nrcpt=1 (queue active)
Mar 13 19:26:02 mail postfix/bounce[9223]: D77182402E4: sender non-delivery notification: 738ED2402E5
Mar 13 19:26:02 mail postfix/cleanup[9217]: 738ED2402E5: message-id=<20230313182602.738ED2402E5@mail.weblandic.com>
Mar 13 19:26:02 mail postfix/smtp[9219]: D77182402E4: to=<marianl74@gmail.com>, relay=gmail-smtp-in.l.google.com[108.177.127.27]:25, delay=0.58, delays=0.02/0.03/0.37/0.16, dsn=5.7.26, status=bounced (host gmail-smtp-in.l.google.com[108.177.127.27] said: 550-5.7.26 Unauthenticated email from weblandic.com is not accepted due to 550-5.7.26 domain's DMARC policy. Please contact the administrator of 550-5.7.26 weblandic.com domain if this was a legitimate mail. Please visit 550-5.7.26  https://support.google.com/mail/answer/2451690 to learn about the 550 5.7.26 DMARC initiative. n10-20020a056402060a00b004bfc30d3425si216255edv.189 - gsmtp (in reply to end of DATA command))
Mar 13 19:26:02 mail postfix/smtp[9219]: Trusted TLS connection established to gmail-smtp-in.l.google.com[108.177.127.27]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256
Mar 13 19:26:01 mail postfix/qmgr[8286]: D77182402E4: from=<marian@mail.weblandic.com>, size=599, nrcpt=1 (queue active)
Mar 13 19:26:01 mail postfix/cleanup[9217]: D77182402E4: message-id=<1678731961.9209@mail.weblandic.com>
Mar 13 19:26:01 mail postfix/pickup[8284]: D77182402E4: uid=0 from=<marian@mail.weblandic.com>
Mar 13 19:19:01 mail postfix/master[8283]: daemon started -- version 3.6.4, configuration /etc/postfix
Mar 13 19:19:01 mail postfix/postfix-script[8281]: starting the Postfix mail system
Mar 13 19:19:00 mail postfix/master[2174]: terminating on signal 15
Mar 13 19:19:00 mail postfix/postfix-script[7723]: stopping the Postfix mail system
Mar 13 19:18:39 mail postfix/lmtp[7708]: 836032402EE: to=<marian@mail.weblandic.com>, relay=mail.weblandic.com[private/dovecot-lmtp], delay=8900, delays=8900/0.03/0.04/0.03, dsn=4.2.0, status=deferred (host mail.weblandic.com[private/dovecot-lmtp] said: 451 4.2.0 <marian@mail.weblandic.com> Internal error occurred. Refer to server log for more information. [2023-03-13 19:18:39] (in reply to end of DATA command))
Mar 13 19:18:39 mail dovecot: lmtp(7709): Disconnect from local: Logged out (state=READY)
Mar 13 19:18:39 mail dovecot: lmtp(marian)<7709><WAohM/9oD2QdHgAA0J78UA>: msgid=<20230313155019.836032402EE@mail.weblandic.com>: save failed to open mailbox INBOX: stat(/home/marian/Maildir/tmp) failed: Not a directory
Mar 13 19:18:39 mail dovecot: lmtp(marian)<7709><WAohM/9oD2QdHgAA0J78UA>: Error: lmtp-server: conn unix:pid=7708,uid=133 [1]: rcpt marian@mail.weblandic.com: stat(/home/marian/Maildir/tmp) failed: Not a directory
Mar 13 19:18:39 mail dovecot: lmtp(7709): Connect from local
Mar 13 19:18:39 mail postfix/local[7707]: 836032402EE: passing <marian@mail.weblandic.com> to transport=lmtp
Mar 13 19:18:39 mail postfix/qmgr[2176]: 836032402EE: from=<>, size=3547, nrcpt=1 (queue active)
Mar 13 19:11:07 mail postfix/anvil[4553]: statistics: max cache size 1 at Mar 13 19:07:47
Mar 13 19:11:07 mail postfix/anvil[4553]: statistics: max connection count 1 for (smtp:192.241.202.30) at Mar 13 19:07:47
Mar 13 19:11:07 mail postfix/anvil[4553]: statistics: max connection rate 1/60s for (smtp:192.241.202.30) at Mar 13 19:07:47
Mar 13 19:07:47 mail postfix/smtpd[4551]: disconnect from unknown[192.241.202.30] ehlo=1 quit=1 commands=2
Mar 13 19:07:47 mail postfix/smtpd[4551]: connect from unknown[192.241.202.30]
Mar 13 19:07:47 mail postfix/smtpd[4551]: warning: hostname zg-1220f-24.stretchoid.com does not resolve to address 192.241.202.30
Mar 13 19:07:13 mail postfix/anvil[2513]: statistics: max cache size 2 at Mar 13 19:03:53
Mar 13 19:07:13 mail postfix/anvil[2513]: statistics: max connection count 1 for (smtp:171.67.70.233) at Mar 13 19:03:51
Mar 13 19:07:13 mail postfix/anvil[2513]: statistics: max connection rate 1/60s for (smtp:171.67.70.233) at Mar 13 19:03:51
Mar 13 19:04:06 mail dovecot: imap-login: Disconnected: Connection closed (no auth attempts in 1 secs): user=<>, rip=171.67.70.233, lip=192.168.10.20, TLS: Connection closed, session=<spnV78v2gMKrQ0bp>
Mar 13 19:04:05 mail dovecot: imap-login: Disconnected: Connection closed (no auth attempts in 1 secs): user=<>, rip=171.67.70.233, lip=192.168.10.20, TLS: Connection closed, session=<0CfO78v2hNerQ0bp>
Mar 13 19:04:04 mail dovecot: pop3-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=171.67.70.233, lip=192.168.10.20, TLS: Connection closed, session=<kPDB78v2koirQ0bp>
Mar 13 19:04:04 mail dovecot: pop3-login: Disconnected: Connection closed (no auth attempts in 1 secs): user=<>, rip=171.67.70.233, lip=192.168.10.20, TLS: Connection closed, session=<Fly678v2PparQ0bp>
Mar 13 19:03:53 mail postfix/smtps/smtpd[2515]: disconnect from unknown[171.67.70.233] commands=0/0
Mar 13 19:03:53 mail postfix/smtps/smtpd[2515]: lost connection after CONNECT from unknown[171.67.70.233]
Mar 13 19:03:53 mail postfix/smtps/smtpd[2515]: warning: TLS library problem: error:0A000126:SSL routines::unexpected eof while reading:../ssl/record/rec_layer_s3.c:308:
Mar 13 19:03:53 mail postfix/smtps/smtpd[2515]: Anonymous TLS connection established from unknown[171.67.70.233]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Mar 13 19:03:52 mail postfix/smtps/smtpd[2515]: connect from unknown[171.67.70.233]
Mar 13 19:03:52 mail postfix/smtps/smtpd[2515]: warning: hostname research.esrg.stanford.edu does not resolve to address 171.67.70.233
Mar 13 19:03:52 mail postfix/smtpd[2509]: disconnect from unknown[171.67.70.233] starttls=1 commands=1
Mar 13 19:03:52 mail postfix/smtpd[2509]: lost connection after STARTTLS from unknown[171.67.70.233]
Mar 13 19:03:52 mail postfix/smtpd[2509]: warning: TLS library problem: error:0A000126:SSL routines::unexpected eof while reading:../ssl/record/rec_layer_s3.c:308:
Mar 13 19:03:52 mail postfix/smtpd[2509]: Anonymous TLS connection established from unknown[171.67.70.233]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Mar 13 19:03:51 mail postfix/smtpd[2509]: connect from unknown[171.67.70.233]
Mar 13 19:03:51 mail postfix/smtpd[2509]: warning: hostname research.esrg.stanford.edu does not resolve to address 171.67.70.233
Mar 13 19:03:50 mail dovecot: imap-login: Disconnected: Connection closed (no auth attempts in 1 secs): user=<>, rip=171.67.70.229, lip=192.168.10.20, TLS: Connection closed, session=<xV7i7sv2gIyrQ0bl>
Mar 13 19:03:49 mail dovecot: imap-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=171.67.70.229, lip=192.168.10.20, TLS: Connection closed, session=<+tTa7sv2WKKrQ0bl>
Mar 13 19:03:48 mail dovecot: pop3-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=171.67.70.229, lip=192.168.10.20, TLS: Connection closed, session=<sXHO7sv2HpqrQ0bl>
Mar 13 19:03:48 mail dovecot: pop3-login: Disconnected: Connection closed (no auth attempts in 1 secs): user=<>, rip=171.67.70.229, lip=192.168.10.20, TLS: Connection closed, session=<7PfG7sv23qarQ0bl>

Alias domeny mam nastaveny takto:

Kód: [Vybrat]
A Record mail 212.55.246.53 Automatic 
TXT Record  @ v=spf1 a mx ip4:212.55.246.53 ?all Automatic
TXT Record _dmarc v=DMARC1; p=reject; rua=mailto:postmaster@weblandic.com Automatic
URL Redirect Record  mail.weblandic.com  http://www.mail.weblandic.com  Unmasked

/etc/postfix/main.cf

Kód: [Vybrat]
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on
# fresh installs.
compatibility_level = 3.6



# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_cert_file=/etc/letsencrypt/live/mail.weblandic.com/fullchain.pem
smtpd_tls_key_file=/etc/letsencrypt/live/mail.weblandic.com/privkey.pem
smtpd_tls_security_level=may
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache

#Enable TLS Encryption when Postfix sends outgoing emails
smtp_tls_security_level = may
smtp_tls_loglevel = 1
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

#Enforce TLSv1.3 or TLSv1.2
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtp_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1

smtp_tls_CApath=/etc/ssl/certs
#smtp_tls_security_level=may
#smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache


smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, weblandic.com, mail, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4


mailbox_transport = lmtp:unix:private/dovecot-lmtp
smtputf8_enable = no

Zatial toto a este vypis dig domeny ukazuje lokalnu adresu. TLS na domene a aliase je nainstalovane cez cerbot. porty na ufw pre postfix aj dovecot povolene a na routri takisto naforwardowane na server. Vie mi niekto poradit???

2
Server / Domácí server a nefunkční doména
« kdy: 15. 02. 2023, 12:34:34 »
Zdravim Vás,
Uz nejaky ten cas sa trapim z nastavenim a spristupnenim mojej domeny na domacom serveri.

Server mi bezi na Dell Optiplex 3020 micro

Procesor Intel Core i3 4150T 3,0 GHz
Ram 4GB
SSD 240GB
Linux Mint 21.1 VERA
Webmin 2.013
Apache 2.4
PHP 8.1
Mysql 8.0

Kedze mam dynamicku adresu a nechem si priplacat za staticku tak som to poriesil cez ddclienta v.3.9.1. Domeny mam zakupene a registrovane na namecheap.com. Ddclient mam nastaveneho na aktualizaciu IP u namecheap.com zatial na jednu domenu weblandic.com a funguje spravne, zatial ho nemam nastaveneho v crone a aktualizujem ho sudo ddclient. Server nebezi nonstop.

Problem mam v tom, ze ak zadam domenu do vyhladavaca v pc alebo v mobile, ktory je pripojeny k lokalnej sieti wifi alebo LAN stranka sa nacita, a aj ked zadam aktualnu verejnu IP v LAN tak sa zobrazi obsah testovacej stranky. Ale ak skusam otvorit stranku alebo IP z Internetu (momentalne mam data na Orange) tak stranka sa neotvori. Skual som to riesit cez nejake zahranicne fora lebo na Slovensku som nieco podobne nenasiel, ale nikto nereagoval a to uz dva tyzdne.

Chcem na nom sprevadzkovat 3 domeny. Jedna na domaci cloud,-stream server, torrent tracker, druha pre webstranku a blog a tretia pre spristupnenie nastaveni servera a monitoring servera odkialkolvek. Viete mi s tym pomoct? pripadne dalsie moje nastavenia poslem. Naozaj neviem ako to sprevadzkovat a uz mi to zabralo vela casu. Skusal som to aj cez tretiu stranu dynu.com cez dynuiuc clienta, aj to zo zaciatku fungovalo ale po nejakom case to zacalo blbnut a robilo to to co teraz.

Stran: [1]