Re: prosba o pomoc nastavením postfixe a pár věcí okolo

jerry.mysak at email.cz jerry.mysak at email.cz
Mon Sep 14 12:48:57 CEST 2020


tak jsem se dopracoval kousek dále. Při newaliases mi to zahlásí:

WARNING: local host name (www) is not qualified; see cf/README: WHO AM I?
/etc/mail/aliases: 31 aliases, longest 40 bytes, 365 bytes total





ale DNS by měla být v OK


vba at www:/usr/local/etc/namedb/working# named-checkzone dvorec.eu dvorec.eu.
for(http://dvorec.eu.for)
zone dvorec.eu/IN(http://dvorec.eu/IN): loaded serial 2020072304
OK
vba at www:/usr/local/etc/namedb/working# named-checkzone 0.168.192.in-addr.
arpa(http://0.168.192.in-addr.arpa) dvorec.eu.rew(http://dvorec.eu.rew)
zone 0.168.192.in-addr.arpa/IN(http://0.168.192.in-addr.arpa/IN): loaded 
serial 2020072504
OK








v main.cf je :


##################zacatek main.cf#####################################


###############Hlavni sekce###########################
# jmeno hostitele ve formatu FQDN...
myhostname = www.dvorec.eu(http://www.dvorec.eu)
# jmeno domeny pro kterou prijimam maily-je treba k nemu nastavit v DNS 
reverzni zaznam
mydomain = dvorec.eu
myorigin = $myhostname
# na jakejch rozhranich posloucha
inet_interfaces = all
# parametry ,kam bude posta dorucovana lokalne
#mydestination = $myhostname, localhost.$mydomain, localhost,



# odkud prijimam maily
mynetworks = 192.168.0.0/24, 127.0.0.0/8, 10.0.0.0/24
###############Hlavni sekce###########################


###############Ostatní nastaveni###############
readme_directory = no
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
html_directory = no
setgid_group = maildrop
# cesta k prikazum postfixu (postmap, postconf, postdrop)
command_directory = /usr/local/sbin
manpage_directory = /usr/local/man
# cesta k demonum postfixu
daemon_directory = /usr/local/libexec/postfix
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
# cesta kde budou ulozeny maily
queue_directory = /var/spool/postfix
# vlastnik mailu
mail_owner = postfix
# kod chybove odpovedi SMTP server
unknown_local_recipient_reject_code = 450

##########Ostatní nastaveni###############


###############Antispamova sekce###############

smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_recipient_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_non_fqdn_hostname,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unauth_destination,
  reject_unauth_pipelining,
  reject_invalid_hostname,
  reject_rbl_client bl.spamcop.net(http://bl.spamcop.net),
  reject_rbl_client sbl-xbl.spamhaus.org(http://sbl-xbl.spamhaus.org)
#vyhozeni mailu co nemaj v poradku DNS zaznam
  reject_unknown_client,
#odmitnuti mailu s falesnou adresou
# reject_unverified_sender,
  reject_unknown_sender_domain,



# Omezeni zpravy na 10Mb
message_size_limit = 10485760
###############nastavení schránek###############


##### zakomentujte nasledujici sekce,pokud je nepouzivate
###############Sekce pro vakace###############

###############Sekce pro vakace###############


###############Sekce pro amavis###############

###############Sekce pro amavis###############

compatibility_level = 2

####################konec main.cf###########################


co mám kde špatně?


More information about the Users-l mailing list