Portál AbcLinuxu, 14. května 2025 01:18
mydestination = $myhostname local.$mydomain localhost mynetworks = 192.168.1.0/24Jak udelat, aby tento server sel pouzit i jako verejny smtp server (jen treba pro jednoho uzivatele s verejnou ip adresou anebo jen na zaklade overeni)? Debian 3.1 Diky. JR
# INTERNET OR INTRANET # The relayhost parameter specifies the default host to send mail to # when no entry is matched in the optional transport(5) table. When # no relayhost is given, mail is routed directly to the destination. # # On an intranet, specify the organizational domain name. If your # internal DNS uses no MX records, specify the name of the intranet # gateway host instead. # # In the case of SMTP, specify a domain, host, host:port, [host]:port, # [address] or [address]:port; the form [host] turns off MX lookups. # # If you're connected via UUCP, see also the default_transport parameter. # #relayhost = $mydomain #relayhost = [gateway.my.domain] #relayhost = [mailserver.isp.tld] #relayhost = uucphost #relayhost = [194.228.30.71] relayhost = [smtp.providera.cz]
main.cf
, parametr mynetworks
.
Jestliže chceš autentizaci na základě jména a hesla, hledej něco o SASL. Takové rychlé HOWTO najdeš třeba tady.
mynetworks = 192.168.1.0/24Změnil jsem to na:
mynetworks = 192.168.1.0/24 1.2.3.4 (to je jako veřejná adresa)a povolil jsem port 25 na firewallu pro přístup zvenčí z této veřejné ip adresy 1.2.3.4. Relay pro tuto veřejnou ip adresu funguje, ale ono to funguje i když tam není uvedená! Proč? Jinak autentizaci pomocí SASL mám nastavenu, při odesílání mailu (z vnitřní i vnější ip) server vyžaduje ověření.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.