Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comm.software.mailserver > #6202 > unrolled thread
| Started by | Clemens Schüller <cs.usenet@mailbox.org> |
|---|---|
| First post | 2020-05-05 17:40 +0200 |
| Last post | 2020-05-05 18:45 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to de.comm.software.mailserver
Postfix - kann ohne Passwort senden Clemens Schüller <cs.usenet@mailbox.org> - 2020-05-05 17:40 +0200
Re: Postfix - kann ohne Passwort senden Tim Ritberg <tim@server.invalid> - 2020-05-05 18:05 +0200
Re: Postfix - kann ohne Passwort senden Arno Welzel <usenet@arnowelzel.de> - 2020-05-05 18:34 +0200
Re: Postfix - kann ohne Passwort senden Clemens Schüller <cs.usenet@mailbox.org> - 2020-05-05 18:45 +0200
| From | Clemens Schüller <cs.usenet@mailbox.org> |
|---|---|
| Date | 2020-05-05 17:40 +0200 |
| Subject | Postfix - kann ohne Passwort senden |
| Message-ID | <m2v9labdac.warhorse@cmschueller.my-fqdn.de> |
Hallo zusammen!
Bin gerade dabei, für eine kleine Arbeitsgruppe einen Postfix
einzurichten:
Das Problem dabei ist, dass man Mails _ohne_ Authentifizierung versenden
kann. Das will ich aber nicht.
postconf -n sagt:
--8<---------------cut here---------------start------------->8---
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
compatibility_level = 2
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = raspberrypi.local, $myhostname, barnburner, localhost.localdomain, localhost
myhostname = barnburner.local
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.16.1.0/24 [fe80::]/10
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = smtp.example.com
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Raspbian)
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
--8<---------------cut here---------------end--------------->8---
Irgendwas hab ich wohl übersehen, aber was?
--
Beste Grüße, Clemens Schüller
[toc] | [next] | [standalone]
| From | Tim Ritberg <tim@server.invalid> |
|---|---|
| Date | 2020-05-05 18:05 +0200 |
| Message-ID | <r8s2s9$432$1@tota-refugium.de> |
| In reply to | #6202 |
Am 05.05.20 um 17:40 schrieb Clemens Schüller:
> Hallo zusammen!
>
> Bin gerade dabei, für eine kleine Arbeitsgruppe einen Postfix
> einzurichten:
>
> Das Problem dabei ist, dass man Mails _ohne_ Authentifizierung versenden
> kann. Das will ich aber nicht.
>
>
> postconf -n sagt:
>
> --8<---------------cut here---------------start------------->8---
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> append_dot_mydomain = no
> biff = no
> broken_sasl_auth_clients = yes
> compatibility_level = 2
> inet_interfaces = all
> inet_protocols = all
> mailbox_size_limit = 0
> mydestination = raspberrypi.local, $myhostname, barnburner, localhost.localdomain, localhost
> myhostname = barnburner.local
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.16.1.0/24 [fe80::]/10
> myorigin = /etc/mailname
> readme_directory = no
> recipient_delimiter = +
> relayhost = smtp.example.com
> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
> smtpd_banner = $myhostname ESMTP $mail_name (Raspbian)
> smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
> smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain =
> smtpd_sasl_security_options = noanonymous
> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
> smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
> smtpd_use_tls = yes
> --8<---------------cut here---------------end--------------->8---
>
>
> Irgendwas hab ich wohl übersehen, aber was?
>
mynetworks
Tim
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-05-05 18:34 +0200 |
| Message-ID | <hhditgFi5smU1@mid.individual.net> |
| In reply to | #6202 |
Clemens Schüller: > Hallo zusammen! > > Bin gerade dabei, für eine kleine Arbeitsgruppe einen Postfix > einzurichten: > > Das Problem dabei ist, dass man Mails _ohne_ Authentifizierung versenden > kann. Das will ich aber nicht. > > > postconf -n sagt: > > --8<---------------cut here---------------start------------->8--- > alias_database = hash:/etc/aliases > alias_maps = hash:/etc/aliases > append_dot_mydomain = no > biff = no > broken_sasl_auth_clients = yes > compatibility_level = 2 > inet_interfaces = all > inet_protocols = all > mailbox_size_limit = 0 > mydestination = raspberrypi.local, $myhostname, barnburner, localhost.localdomain, localhost > myhostname = barnburner.local > mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.16.1.0/24 [fe80::]/10 Von wo aus sendest Du? Zufällig aus dem Netzwerk 172.16.1.0/24? Das ist durch "mynetworks" als lokales Netz angegeben, von dem aus Postfix auch ohne Authentifizierung Mails annimmt. Siehe auch: <http://www.postfix.org/postconf.5.html#mynetworks> -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Clemens Schüller <cs.usenet@mailbox.org> |
|---|---|
| Date | 2020-05-05 18:45 +0200 |
| Message-ID | <m2pnbi9vpj.warhorse@cmschueller.my-fqdn.de> |
| In reply to | #6204 |
Servus! Arno Welzel schrieb am 05. May. 2020 um 18:34: > Clemens Schüller: >> Bin gerade dabei, für eine kleine Arbeitsgruppe einen Postfix >> einzurichten: >> >> Das Problem dabei ist, dass man Mails _ohne_ Authentifizierung versenden >> kann. Das will ich aber nicht. >> >> >> postconf -n sagt: >> >> --8<---------------cut here---------------start------------->8--- >> alias_database = hash:/etc/aliases >> alias_maps = hash:/etc/aliases >> append_dot_mydomain = no >> biff = no >> broken_sasl_auth_clients = yes >> compatibility_level = 2 >> inet_interfaces = all >> inet_protocols = all >> mailbox_size_limit = 0 >> mydestination = raspberrypi.local, $myhostname, barnburner, localhost.localdomain, localhost >> myhostname = barnburner.local >> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.16.1.0/24 [fe80::]/10 > > Von wo aus sendest Du? Zufällig aus dem Netzwerk 172.16.1.0/24? Das ist > durch "mynetworks" als lokales Netz angegeben, von dem aus Postfix auch > ohne Authentifizierung Mails annimmt. Sowohl aus dieser, als auch aus der fe80 Range - je nachdem, ob IPv4 oder 6. Tim hat mich auf den richtigen Weg gebracht - hab aus smtpd_relay_restrictions das permit_mynetworks rausgenommen - und schon geht es nur über AUTH. Danke ;-) -- Beste Grüße, Clemens Schüller
[toc] | [prev] | [standalone]
Back to top | Article view | de.comm.software.mailserver
csiph-web