moje osobne mail howto Sendmail - kriste pane ---------------------- snazil som sa docielit aby masina jakubpc.nova2 zbierala postu pre domenu nova2 A. MX record ohladne jakubpc.nova2 v DNS serveri pozri dns.HOWTO B. riadok nova2 v subore /etc/sendmail.cw -toto je subor aliasov pre sendmail ohladne mien pocitacov za ktore primame postu C. samozrejme /etc/sendmail.cf musi toto podporovat v red hat 5 takto vyzera m4 zdrojak divert(-1) include(`../m4/cf.m4') define(`confDEF_USER_ID',``8:12'') OSTYPE(`linux') undefine(`UUCP_RELAY') undefine(`BITNET_RELAY') FEATURE(redirect) FEATURE(always_add_domain) FEATURE(use_cw_file) FEATURE(local_procmail) MAILER(procmail) MAILER(smtp) HACK(check_mail3,`hash -a@JUNK /etc/mail/deny') HACK(use_ip,`/etc/mail/ip_allow') HACK(use_names,`/etc/mail/name_allow') HACK(use_relayto,`/etc/mail/relay_allow') HACK(check_rcpt4) HACK(check_relay3) Toto uz je mnou pridana ficura sposobi ze ked niekto posle mail bude sa to tvarit ako napr. miro@nova2 miesto [email protected] MASQUERADE_AS(nova2) Kompilacia m4 redhat.mc >redhat.cf cp redhat.cf /etc/sendmail.cf Client Mutt mi plne vyhovuje maly a vykonny schopnost saveovat MIME attachmenty ukazka ako musi vyzerat ~/.muttrc aby sa dal vyuzivat POP set pop_host="jakubpc.nova2" set pop_user="marta" ------------------------ ------------------------ RUCNE POUZIVANIE telnetu na prieskum veci telnet smaragd 25 HELP - vypise prikazy MAIL FROM: [email protected] RCPT TO: jakub@smaragd DATA - potom text ukoncit bodkou QUIT a pop3 telnet parenica 110 USER jakub PASS xxxxx LIST QUIT ------------------------- ------------------------- Tu som zas potreboval rozchodit mutt (teda sendmail pre [email protected]) teda napisene je to v sendmail-address-rewriting-mini-howto do sendmail.mc pridame define(`SMART_HOST',`mail.connection.com') FEATURE(masquerade_envelope) FEATURE(genericstable, `hash -o /etc/mail/genericstable') GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain') kde smart_host je nas mailhub - mail.connection.com masquerade_envelop znamena ze ma masqueradovat vsetko nielen hlavicku genericstable je table pre prepisovanie user mien - jakub na [email protected] generics_domain_file je subor kde sa pise pre ktore domeny tam ma robit ten address rewrite subory genericstable !!!no akurat tu generics table treba prehnat cez to co urobi ten hash z toho jakub [email protected] genericsdomain localhost.localdomain Toto bol zas jednoduchy pripad v robote kde som chcel aby vsetko poslane z mojej masiny vyzeralo ako irover.com miesto chaos.wiredkingdom.com FEATURE(masquerade_envelope)dnl MASQUERADE_AS(irover.com)dnl Sendmail queue Listing the queue sendmail -bp | mailq -v Forcing the queue sendmail -q -v dalsie finty s muttom m - compose mail p - v compose menu ukaze gpg menu R - recall postponed messages c - change folder -> ? pre browse ! pre spoolfile(cize norm mailbox) c -> ? ->ukaze zoznam mailboxov