abclinuxu.cz AbcLinuxu.cz itbiz.cz ITBiz.cz HDmag.cz HDmag.cz abcprace.cz AbcPráce.cz
AbcLinuxu hledá autory!
Inzerujte na AbcPráce.cz od 950 Kč
Rozšířené hledání
×
    včera 15:00 | Zajímavý článek

    Byl publikován přehled vývoje renderovacího jádra webového prohlížeče Servo (Wikipedie) za uplynulé dva měsíce. Servo zvládne už i Gmail. Zakázány jsou příspěvky generované pomocí AI.

    Ladislav Hagara | Komentářů: 5
    9.5. 17:22 | Nová verze

    Raspberry Pi Connect, tj. oficiální služba Raspberry Pi pro vzdálený přístup k jednodeskovým počítačům Raspberry Pi z webového prohlížeče, byla vydána v nové verzi 2.5. Nejedná se už o beta verzi.

    Ladislav Hagara | Komentářů: 3
    9.5. 15:22 | Komunita

    Google zveřejnil seznam 1272 projektů (vývojářů) od 185 organizací přijatých do letošního, již jednadvacátého, Google Summer of Code. Plánovaným vylepšením v grafických a multimediálních aplikacích se věnuje článek na Libre Arts.

    Ladislav Hagara | Komentářů: 0
    8.5. 19:22 | Nová verze

    Byla vydána (𝕏) dubnová aktualizace aneb nová verze 1.100 editoru zdrojových kódů Visual Studio Code (Wikipedie). Přehled novinek i s náhledy a videi v poznámkách k vydání. Ve verzi 1.100 vyjde také VSCodium, tj. komunitní sestavení Visual Studia Code bez telemetrie a licenčních podmínek Microsoftu.

    Ladislav Hagara | Komentářů: 0
    8.5. 18:00 | Nová verze

    Open source platforma Home Assistant (Demo, GitHub, Wikipedie) pro monitorování a řízení inteligentní domácnosti byla vydána v nové verzi 2025.5.

    Ladislav Hagara | Komentářů: 0
    8.5. 01:22 | Nová verze Ladislav Hagara | Komentářů: 0
    8.5. 00:55 | Zajímavý projekt

    PyXL je koncept procesora, ktorý dokáže priamo spúštat Python kód bez nutnosti prekladu ci Micropythonu. Podľa testov autora je pri 100 MHz približne 30x rýchlejší pri riadeni GPIO nez Micropython na Pyboard taktovanej na 168 MHz.

    vlk | Komentářů: 0
    7.5. 19:44 | Nová verze

    Grafana (Wikipedie), tj. open source nástroj pro vizualizaci různých metrik a s ní související dotazování, upozorňování a lepší porozumění, byla vydána ve verzi 12.0. Přehled novinek v aktualizované dokumentaci.

    Ladislav Hagara | Komentářů: 0
    7.5. 17:33 | Nová verze

    Raspberry Pi OS, oficiální operační systém pro Raspberry Pi, byl vydán v nové verzi 2025-05-06. Přehled novinek v příspěvku na blogu Raspberry Pi a poznámkách k vydání. Pravděpodobně se jedná o poslední verzi postavenou na Debianu 12 Bookworm. Následující verze by již měla být postavena na Debianu 13 Trixie.

    Ladislav Hagara | Komentářů: 0
    7.5. 05:33 | Komunita

    Richard Stallman dnes v Liberci přednáší o svobodném softwaru a svobodě v digitální společnosti. Od 16:30 v aule budovy G na Technické univerzitě v Liberci. V anglickém jazyce s automaticky generovanými českými titulky. Vstup je zdarma i pro širokou veřejnost.

    Ladislav Hagara | Komentářů: 17
    Jaký filesystém primárně používáte?
     (57%)
     (1%)
     (8%)
     (22%)
     (4%)
     (2%)
     (3%)
     (1%)
     (1%)
     (3%)
    Celkem 580 hlasů
     Komentářů: 26, poslední 8.5. 09:58
    Rozcestník

    Dotaz: Sendmail - konfigurace

    16.1.2005 15:21 gaminn
    Sendmail - konfigurace
    Přečteno: 1913×
    Celej den sedím u kompu a snažím se nakonfigurovat mailserv (Sendmail - vím, že to není nic pro začátečníka, kterej nikdy se serverem nedělal, ale nemám jinou možnost). Mám problém při odesílání pošty - hlavička e-mailu, který přijde (nebo by měl přijít) je:
    Received: (qmail 20044 invoked from network); 16 Jan 2005 14:49:40 +0100
    Received: from unknown (HELO localhost.localdomain) (***.***.***.***)
    by vega.go.seznam.cz with SMTP; 16 Jan 2005 14:49:40 +0100
    Received: from localhost.localdomain (f027 [127.0.0.1])
    by localhost.localdomain (8.13.1/8.13.1) with ESMTP id j0GDnKXe002246
    for prijemce@seznam.cz; Sun, 16 Jan 2005 14:49:20 +0100
    Received: (from nobody@localhost)
    by localhost.localdomain (8.13.1/8.13.1/Submit) id j0GDnKSa002245;
    Sun, 16 Jan 2005 14:49:20 +0100
    
    Porblém je v tom, že třeba na atlas.cz, centrum.cz e-mail nepřijde, protože ho odmítnou - kvůli hlavičce, která obsahuje neznámého odesílatele - jak udělat, aby se do hlavičky zapisoval správný odesílat (ne jenom nějako localhost.localdomain)?

    Odpovědi

    16.1.2005 17:00 ZAH
    Rozbalit Rozbalit vše Re: Sendmail - konfigurace
    Problém je v odesílací adrese. Jednak není vhodné asi pracovat pod nobody a jednak je zapotřebí přepisovat domeny. Ukázka příslušné části sendmail.mc, která nahrazuje lokální jmena na tvijedomena.cz
    dnl #
    dnl # The following example makes mail from this host and any additional
    dnl # specified domains appear to be sent from mydomain.com
    dnl #
    MASQUERADE_AS(`tvoje_domena.cz')dnl
    dnl #
    dnl # masquerade not just the headers, but the envelope as well
    dnl #
    FEATURE(masquerade_envelope)dnl
    dnl #
    dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
    dnl #
    FEATURE(masquerade_entire_domain)dnl
    dnl #
    MASQUERADE_DOMAIN(localhost)dnl
    MASQUERADE_DOMAIN(localhost.localdomain)dnlMASQUERADE_AS
    
    
    16.1.2005 17:50 gaminn
    Rozbalit Rozbalit vše Re: Sendmail - konfigurace
    Díky moc, to je přesně to co potřebuju....určitě blbej dotaz, ale udělám to, abych nepracoval pod nobody?
    16.1.2005 18:12 gaminn
    Rozbalit Rozbalit vše Re: Sendmail - konfigurace
    Tak smůla....nastavil jsem to přesně tak, předělalo to i soubor sendmail.cf, restartoval jsem to...a výsledek je úplně stejný...
    16.1.2005 18:27 gaminn
    Rozbalit Rozbalit vše Re: Sendmail - konfigurace
    Tohle je konfigurační soubor, co je špatně??? (tady na stránce jo kód zmatlanej dohromady, mrkni do zdrojového kódu této stránky, tam je to zobrazeno dobře)
    Other divert(-1)dnl  
    Other dnl #  
    Other dnl # This is the sendmail macro config file for m4. If you make changes to  
    Other dnl # /etc/mail/sendmail.mc, you will need to regenerate the  
    Other dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is  
    Other dnl # installed and then performing a  
    Other dnl #  
    Other dnl # make -C /etc/mail  
    Other dnl #  
    Other include(`/usr/share/sendmail-cf/m4/cf.m4')dnl  
    Other VERSIONID(`setup for Red Hat Linux')dnl  
    OS Type OSTYPE(`linux')dnl  
    Other dnl #  
    Other dnl # default logging level is 9, you might want to set it higher to  
    Other dnl # debug the configuration  
    Other dnl #  
    Other dnl define(`confLOG_LEVEL', `9')dnl  
    Other dnl #  
    Other dnl # Uncomment and edit the following line if your outgoing mail needs to  
    Other dnl # be sent out through an external mail server:  
    Other dnl #  
    Other dnl define(`SMART_HOST',`smtp.your.provider')  
    Other dnl #  
    Define define(`confDEF_USER_ID',``8:12'')dnl  
    Other dnl define(`confAUTO_REBUILD')dnl  
    Define define(`confTO_CONNECT', `1m')dnl  
    Define define(`confTRY_NULL_MX_LIST',true)dnl  
    Define define(`confDONT_PROBE_INTERFACES',true)dnl  
    Define define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl  
    Define define(`ALIAS_FILE', `/etc/aliases')dnl  
    Define define(`STATUS_FILE', `/var/log/mail/statistics')dnl  
    Define define(`UUCP_MAILER_MAX', `2000000')dnl  
    Define define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl  
    Define define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl  
    Define define(`confAUTH_OPTIONS', `A')dnl  
    Other dnl #  
    Other dnl # The following allows relaying if the user authenticates, and disallows  
    Other dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links  
    Other dnl #  
    Other dnl define(`confAUTH_OPTIONS', `A p')dnl  
    Other dnl #   
    Other dnl # PLAIN is the preferred plaintext authentication method and used by  
    Other dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do  
    Other dnl # use LOGIN. Other mechanisms should be used if the connection is not  
    Other dnl # guaranteed secure.  
    Other dnl # Please remember that saslauthd needs to be running for AUTH.   
    Other dnl #  
    Other dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl  
    Other dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl  
    Other dnl #  
    Other dnl # Rudimentary information on creating certificates for sendmail TLS:  
    Other dnl # cd /usr/share/ssl/certs; make sendmail.pem  
    Other dnl # Complete usage:  
    Other dnl # make -C /usr/share/ssl/certs usage  
    Other dnl #  
    Other dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')  
    Other dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')  
    Other dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')  
    Other dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')  
    Other dnl #  
    Other dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's  
    Other dnl # slapd, which requires the file to be readble by group ldap  
    Other dnl #  
    Other dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl  
    Other dnl #  
    Other dnl define(`confTO_QUEUEWARN', `4h')dnl  
    Other dnl define(`confTO_QUEUERETURN', `5d')dnl  
    Other dnl define(`confQUEUE_LA', `12')dnl  
    Other dnl define(`confREFUSE_LA', `18')dnl  
    Define define(`confTO_IDENT', `0')dnl  
    Other dnl FEATURE(delay_checks)dnl  
    Feature FEATURE(`no_default_msa',`dnl')dnl  
    Feature FEATURE(`smrsh',`/usr/sbin/smrsh')dnl  
    Feature FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl  
    Feature FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl  
    Feature FEATURE(redirect)dnl  
    Feature FEATURE(always_add_domain)dnl  
    Feature FEATURE(use_cw_file)dnl  
    Feature FEATURE(use_ct_file)dnl  
    Other dnl #  
    Other dnl # The following limits the number of processes sendmail can fork to accept   
    Other dnl # incoming messages or process its message queues to 12.) sendmail refuses   
    Other dnl # to accept connections once it has reached its quota of child processes.  
    Other dnl #  
    Other dnl define(`confMAX_DAEMON_CHILDREN', 12)dnl  
    Other dnl #  
    Other dnl # Limits the number of new connections per second. This caps the overhead   
    Other dnl # incurred due to forking new sendmail processes. May be useful against   
    Other dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address   
    Other dnl # limit would be useful but is not available as an option at this writing.)  
    Other dnl #  
    Other dnl define(`confCONNECTION_RATE_THROTTLE', 3)dnl  
    Other dnl #  
    Other dnl # The -t option will retry delivery if e.g. the user runs over his quota.  
    Other dnl #  
    Feature FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl  
    Feature FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl  
    Feature FEATURE(`blacklist_recipients')dnl  
    Other EXPOSED_USER(`root')dnl  
    Other dnl #  
    Other dnl # The following causes sendmail to only listen on the IPv4 loopback address  
    Other dnl # 127.0.0.1 and not on any other network devices. Remove the loopback  
    Other dnl # address restriction to accept email from the internet or intranet.  
    Other dnl #  
    Other DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl  
    Other dnl #  
    Other dnl # The following causes sendmail to additionally listen to port 587 for  
    Other dnl # mail from MUAs that authenticate. Roaming users who can't reach their  
    Other dnl # preferred sendmail daemon due to port 25 being blocked or redirected find  
    Other dnl # this useful.  
    Other dnl #  
    Other dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl  
    Other dnl #  
    Other dnl # The following causes sendmail to additionally listen to port 465, but  
    Other dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed  
    Other dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't  
    Other dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS  
    Other dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps  
    Other dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.  
    Other dnl #  
    Other dnl # For this to work your OpenSSL certificates must be configured.  
    Other dnl #  
    Other dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl  
    Other dnl #  
    Other dnl # The following causes sendmail to additionally listen on the IPv6 loopback  
    Other dnl # device. Remove the loopback address restriction listen to the network.  
    Other dnl #  
    Other dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl  
    Other dnl #  
    Other dnl # enable both ipv6 and ipv4 in sendmail:  
    Other dnl #  
    Other dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')  
    Other dnl #  
    Other dnl # We strongly recommend not accepting unresolvable domains if you want to  
    Other dnl # protect yourself from spam. However, the laptop and users on computers  
    Other dnl # that do not have 24x7 DNS do need this.  
    Other dnl #  
    Feature FEATURE(`accept_unresolvable_domains')dnl  
    Other dnl #  
    Other dnl FEATURE(`relay_based_on_MX')dnl  
    Other dnl #   
    Other dnl # Also accept email sent to "localhost.localdomain" as local email.  
    Other dnl #   
    Other LOCAL_DOMAIN(`localhost.localdomain')dnl  
    Other dnl #  
    Other dnl # The following example makes mail from this host and any additional  
    Other dnl # specified domains appear to be sent from mydomain.com  
    Other dnl #  
    Other MASQUERADE_AS(`moje_domena.cz')dnl  
    Other dnl #  
    Other dnl # masquerade not just the headers, but the envelope as well  
    Other dnl #  
    Feature FEATURE(masquerade_envelope)dnl  
    Other dnl #  
    Other dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well  
    Other dnl #  
    Feature FEATURE(masquerade_entire_domain)dnl  
    Other dnl #  
    Other MASQUERADE_DOMAIN(localhost)dnl  
    Other MASQUERADE_DOMAIN(localhost.localdomain)dnl  
    Other dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl  
    Other dnl MASQUERADE_DOMAIN(mydomain.lan)dnl  
    Mailer MAILER(smtp)dnl  
    Mailer MAILER(procmail)dnl  
    Other dnl použít generickou tabulku
    29.6.2005 12:24 marty
    Rozbalit Rozbalit vše Re: Sendmail - konfigurace
    Díky moc, pomohlo to i mě :-)
    7.7.2005 15:55 Martin
    Rozbalit Rozbalit vše Re: Sendmail - konfigurace
    ja vzdy menim primo sendmail.cf a tam zmenim parametr Djnazev.tveho.poctace kde nazev.tveho.pocitace je jmeno serveru:-)

    Založit nové vláknoNahoru

    Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

    ISSN 1214-1267   www.czech-server.cz
    © 1999-2015 Nitemedia s. r. o. Všechna práva vyhrazena.