Qmail + Mini HOWTO

xiaoxiao2021-03-06  108

From: Linux knowledge treasure

Users who want to use the above combination for their email, I summarize some installation experiences to provide some help. I have just got some new Linux management information, so I decided to update this period MINI-HOWTO. 1. Describe what is qmail? How should we use it correctly? Some explanations will be given below. QMAIL is a proxy that is safe, reliable, efficient, and concise information. It is now fully alternative to the system that is transmitted on the host as a platform for the platform in the typical Internet. Safety: Safety is not just a goal, but it is undoubtedly a need. The user is highly required by the sending email; it can't make a mistake, so it must be absolutely safe and reliable. (This is why I started using qmail: I feel very uneasy about many security vulnerabilities in other mail sending systems.) Reliable: qmail adopts "Straight-Paper-Path" design "philosophy", ensuring that one message is received once It will never lose. Qmail also supports maildir features, a brand new, super-stable user mailbox format. Maildirs, unlike MBOX files and MH folders, if the system error can cause the reception interrupt. More preferably, users can not only read his email on NFS (Network File System), but also, at the same time, any other NFS client can send him an email. Efficient: On a Pentium machine in a BSD / OS, QMIAL can easily support 200,000 local information every day ---- Separate the send and receive information of information in the mailbox! Although the DNS (Domain Name Server) and SMTP's remote transmission of SMTP have speed slow limitations, QMAIL can send 20 emails at the same way by default, so it can quickly pass the mailing list compared to it. (This is why I use qmail, I have to build a huge mailing list.) Simple: Qmail is much smaller than the space occupied by any other Internet MTA. This is because: (1) Other MTA systems use a mechanism for individual resolution, anonymity, and mailing lists. QMail uses a simplified parsing mechanism that allows users to handle their own mailing list. (2) Other MTAs are such a send mode: or fast unsafe, or slowly queue. And QMAIL, once there is a new message in the queue, it is sent immediately, so the qmail sent mode can only be: Quick queue. (3) Other MTA systems actually contain a special inetd version, which reduces the load of the machine. The design of QMAIL has fundamentally reduces the load of the machine, so the QMAIL sending system can run safely on your machine. Alternative Sendmail Send Mail: QMAIL supports the anonymity of host and user, fully hide the host, virtual domain name, invalid customer, owner list rewriting, endless control, recoverable double record, strict RFC 822 address list, crossover host The loop detection of the mailing list, each receiving checkpoint, the backup recovery of the faulty host, independent retry scheduling, etc. In short, it is a fast feature in modern MTA. Qmail also includes an outbox that can be transparently facing many users. 2. My system SUSE Linux Distribution 5.1 with 2.0.33 kernal. Net-to-End Protocol (PPP) is connected to the Internet Service Provider (ISP). 3. QMAIL installation is correct according to the steps of the installation instructions. Note: Please take the time to read the installation instruction file. There is a number indicating the installation step in the above installation file. 2.- I have to set the group and the user manually as each install.ids7.-./qmail-makectl cannot run on my system.

I have joined my domain name (mickey.n.eunet.de) in / var / qmail / control / me. - Determine QMail-SMTPD correctly spelling in the inetd-conf file. (I spelled qmail-smtpd into qmail-smptd, causing me to spend two days to find: () SMTP Stream TCP NOWAIT qmails / var / qmail / bin / TCP-ENV TCP-ENV / VAR / QMAIL / BIN / Qmail-SMTPD3.1 MAILDIR2SMTPDAN BERNSTEIN has provided a package that sends a series of mail through dial-up to ISP. This package is used as a series of mail sent from its site. This package is installed in this person (thanks Rupert Mazzucco (Maz @ Pap.Univie.ac.at) The web page details, maildir2smtp - Send a maildir.mAildir2SMTP via SMTP is designed to deliver packets on a SLIP or PPP link. To establish maildir2smtp in connection with the connectionless terminal Anonymous Create a new maildir: # maildirmake ~ alias / pppdir # chown -r alias ~ alias / pppdir puts: Alias-PPP Add Control / VirtualDomain to add ~ Alias ​​/ .qmail-ppp-default Don't forget PPPDIR / Additional deletion. Then, in the PPP start text, do the following: maildir2smtp ~ alias / pppdir alias-ppp- $ ip `hostname` Note: Please read the complete manner Correct manual. Maildir2smtp requires your mail server IP address. If you don't have this IP address, you can detect YourMail.host.COUNTRY to return your mail server's IP address. This command is included in your login text, in you After logging in to your Internet service provider ISP, refresh all queue emails. 4. MH installation In addition to this setting, I also replace / MH-6.8.4/mts/sendmail/smail.c to DAN BERNSTEINS MH- Qmail-smail.c. Here is my MH-6.8.4 / Conf / MH setting.

______________________________________________________________________bin / usr / bin / mhetc / usr / lib / mh # mail # mandir / usr / man # manuals standardchown / bin / chown # cp cp # ln ln # remove mv -fcc gccccoptions -traditional -O2 -m486 -D_NFILE = ' getdtablesize () '- DSIGEMT = SIGUSR1curses -lncurses # ldoptions -s # ldoptlibslex flex # oldload off # ranlib onmts sendmail # mf off # bboards off # bbdelivery off # bbhome / usr / spool / bboardspop onpopdir / usr / lib / mhsharedlib sys5slflags - fPICslibdir / usr / libmailgroup mailsignal voidsprintf int # editor prompter # debug off # regtest offoptions ATHENAoptions BINDoptions DPOPoptions DUMBoptions FCNTLoptions MHEoptions MHRCoptions MIMEoptions MORE = ' "/ usr / bin / less"' options OVERHEADoptions POP2options POPSERVICE = ' "pop3"' options RENAMEoptions RPATHSoptions RPOPoptions SOCKETSoptions SVR4options SYS5options SYS5DIRoptions TERMINFOoptions UNISTDoptions VSPRINTF______________________________________________________________________ Note: I only compiled `` mts sendmail in comp.mail.mh in '' where / smtp can cause problems. Dominic mitchell (hdm@demon.net) writes in Comp.mail.MH (13 June 1997): "Use this option, MH can still pass a pipe instead of the network with SMTP. You do need it in you / . MH_PROFILE Join one line: PostProc: / usr / local / nmh / lib / spost or no matter what way is existing on your system, it will transfer packets directly to Sendmail in a traditional way, you are indeed using qmail, so Sendmail will become a package text of qmail, this is OK. "4.1 MtStailor see the default directory (~ / mailbox) because qmail sends again. I add the following settings to my MtStailor. localname: mickeylocaldomain: n.eunet.demmdfldir: mmdflfil: Mailboxuucpldir: uucplfil: mmdelim1: 01010101mmdelim2: 01010101mmailid: 0umincproc: lockldir: sendmail: / usr / lib / sendmail Note: sendmail: / usr / lib / sendmail is connected to the in / var The path to the qmail sendmail package in qmail / bin. MH is not like phonetic symbols (~ /), but using / home or sets the space according to the default $ home.

I have recently installed MH and Qmail on an Ethernet computer in the office. I joined in mtstailor in the following line: servers: mailserver.company.country4.2 mh_profile following is my .mh_profile settings Path: Maildraft-folder: draftsunseen-sequence: unseenAliasfile: /home/rdn/.mh_aliasessend: -msgidcomp: - FORM /HOME/RDN/.MYMH-COMPONENTSMAILDROP: / Home / RDN / Mailbox Note: I join the "Inbox" one line, in order to guarantee the receipt of the mail .5.Fetchmail Due to many users (my whole family), I decided Use fetchmail. Linux and Fetchmail send MAIL to the SMTP Port that receives QMAIL. There should be no problem with the installation, and you will be in the following steps. fetchmailrc: poll PersonalMail.Germany.EU.netprotocol pop3username mynamepassword mypassword # the next two lines do the trick for multidroplocaldomains mydomain.deis * here # T2 of the fetchmail FAQ states that qmail needs thisforcecr6.exmh This is my choice mailer. I like it so much. There is only one trouble ---- most advanced assembly TCL / TK parcel compiles the security terms. With the emergence of SUSE, XServerRC solves this trouble under the premise of ensuring safety. ! ____________________________________________________________________ # / bin / sh ## move this file to ~ / .xserverrc, if you do not want to allow everybody to # get access to your X-Server # if [-x / usr / bin / keygen]; thenif [! -X / usr / bin / hostname -a! -X / bin / hostname-a! -x / usr / bsd / hostname]; thenecho "startx: can't get my hostname - EXITING" EXIT 1ELSEHOST = `Hostname `FixAuth Add $ host: 0.` / usr / bin / keygen`sleep 2xauth add $ host / "unix": 0. `/ usr / bin / keygen`Exec x: 0 -auth .xauthority $ * elseexec x: 0 $ * fi ______________________________________________________________________ 7.Procmailqmail FAQ has the following requirements: add the line in /.qmail | preline procmail3.11per7 version changed some of the contents of the default mailbox.

It used to be in the config.h file, and now in the src / automate.c file: #define mailspoolhome "/ mailbox" / * watch the Leading / * // * Delivers to $ home / mailbox * / I streamlined some Comp.mail.MH and Comp.mail.misc's content is placed in the procmailrc file, thank you for your valuable comments! # This is prepared for the newbie, Sample.Procmailrc file # by Catherine Hampton (Ariel@best.com) # 版 1. 1.1 # Update Date 1/25/98 ## 公众 公众 Free ### set variables # Internal Variables # below RDN at 19980303 modified # 【Participate in the Working Environment of the shell = / bin / sh (shell is used to run Procmail. Great your system has been backed up. Do not replace other shells unless you have a message. LineBRF = 4096 (used to make PROCMAIL after long run or suffocating when processing special emails.) Path = $ home / bin: / bin: / usr / bin: / usr / local / bin: / usr / BIN / MH: / USR / LIB / MH: (your program path ---- this vacancy may be best) verbose = OFF (if you choose "ON", ProCmail will detect each step being executed Error. Note, do not choose "ON" because it generates a very large detection file.) # Default and file location maildir = $ home / mail (you'd better confident this directory.) Default = $ home / mailbox (Best Internet is the user of 2-5 shell mailboxes. Person can select the correct settings for the system in different sides.) Logfile = $ maildir / procmail.log (Detecting information processing, recommended this Ding ---- Otherwise, the error message will mail you.) Formail = / usr / bin / formail (very useful automatic reply skills. If you are not on the Best Internet, change this information on the formail system automatically reply to the message. Sendmail = / usr / sbin / sendmail (very useful automatic reply technique. If you are not on the Best Internet, change this information on the Sendmail system copy to automatically reply to mail.) Procmail is a very good document program. Please read the content as a reference to set your ProcmailRC file. 8. Although this seems to be related to qmail or MH, I still finish. Because if your ISP does not have a PPP line, there is no email. I have encountered considerable trouble in using my ISDN. SUSE contains a portion specially prepared for ISDN, but I want to be simpler. The following materials are updated by Bernhard Hailer. The following rc.config files load the necessary components of the initialization.

#! / Bin / bash # This is adapted Bernhard Hailer's old scriptLOCAL_NUMBER = "91311234" # tel no. 091311234REMOTE_NUMBER = "0911123456" # ISP tel no.LOCAL_IP = "192.168.0.99" # I have dynamic IP so this will doREMOTE_IP = " 195.112.123.11 "# your ISP's gatewayDEVICE =" ippp0 "SYSPATH =" / sbin "iSDNCTRL =" $ SYSPATH / isdnctrl "case" $ 1 "instart) # turn on isdninsmod /lib/modules/2.0.33/net/slhc.oinsmod /LIB/Modules/2.0.33../misc/isdn.osleep 1 # loading the hisax moduleinsmod /lib/modules/2.0.33../misc/hisax.oid=tel0 type = 5 protocol = 2 IRQ = 10 IO = 0x300echo "starting isdn4linux" # global $ iSDNCTRL verbose 0 $ iSDNCTRL addif $ DEVICE # create new interface $ iSDNCTRL addphone $ DEVICE in $ REMOTE_NUMBER $ iSDNCTRL addphone $ DEVICE out $ REMOTE_NUMBER $ iSDNCTRL eaz $ DEVICE $ LOCAL_NUMBER $ iSDNCTRL l2_prot $ DEVICE hdlc $ iSDNCTRL l3_prot $ DEVICE trans $ iSDNCTRL encap $ DEVICE syncppp $ iSDNCTRL huptimeout $ DEVICE 300 $ iSDNCTRL chargehup $ DEVICE off $ iSDNCTRL secure $ DEVICE on $ SYSPATH / ifconfig $ DEVICE $ lOCAL_IP pointopoint $ REMOTE_IP metric 1 $ SYS PATH / route add default $ DEVICE $ SYSPATH / ipppd / dev / ippp0 file /etc/ppp/options.ipppd & $ SYSPATH / route del default ;; stop) #turn off isdnrmmod hisax.osleep 1rmmod isdn.ormmod slhc.oecho " SHUTTING DOWN ISDN4LINUX "$ Isdnctrl Delif ipp0 ;; *) Echo" USAGE: $ 0 (start | stop) EXIT 1 ;; ESAC I use the following skills to dial, it is called a simple ISDN ON | Off #! / Bash # This is based on an old script from Bernhard HailerIP_ADDRESS = "195.112.123.11" case "$ 1" inon) echo "Calling ippp0" / sbin / isdnctrl dial ippp0 # the sleep is important as it gives the PPP time to settle downecho "Sleep For 8s for PPP Handshake

Sleep 8s / sbin / route add default ippp0echo "line open - checking ...." # check WHETHER PPP Negotiation Was Successful: Set `ping -qc3 -i1 $ ip_address 2> / dev / null | grep transmitted`if [$ 4 - GT 0]; Thenecho "succeeded." echo "starting fetchmail daem" / usr / bin / fetchmail -d 600 -k -v -a -l / var / log / fetchmailecho "flushing mail queue ...." / usr / local / bin / serialmail / maildir2smtp ~ alias / pppdir alias-ppp- mail.server.ip.no `hostname`elseecho" failed! "/ sbin / isdnctrl hangup ippp0fi ;; off) echo -n" Shutting down fetchmail daemon "/ USR / BIN / FETCHMAIL --QUIT / SBIN / ISDNCTRL HANGUP IPPP0 / SBIN / ROUTE DEL Default # and delete routeecho "You're off line" ;; *) echo -e "ausage:" echo "isdn on" echo "ISDN OFF ";; ESAC Next is IPPPD option file /etc/ppp/options.ipppd# based: #Klaus Franken, KFR @ srse.de # Version: 27.08.97 (5.1) ## This file YaST Copy to Optiongs.user "Myrserid" # 我 t t (only on chap!) # Name my_system_name # get an IP address ipcp-accept-localipcp-accept-recdenoipDefault at PEER # Test from Interface to get the IP address #ipppd specific option (such as conflict with PPPD) # Only static ip # useifip # All Head ER-Compression is set to disable-vj-vjccomp-ac-pc-bsdcomp # Sometimes you need this: # Noccp # Maximum acceptance MRU 1524 # Maximum transmission number MTU 1500 # If your machine is a server, you request the visa below Note for annotations. However, if your machine is a client, you will not successfully connect! (The information will prompt "Peer Refused to Authenticate", the peer reject the visa), so only the following steps are available on the server for unnot: # " pap" / " chap" NUR Aktivieren, Wenn Dies Ein Server IST !! ! # PAP # chap # If you have any questions about Handshaking (for example, the first LCP-Package is not responding) can try to reduce the number of retries, by default, 3 sec, try 2 Sec: # LCP-RESTART 29. Source file request package: The Internet is so rapidly, so that the source file is not meaningless.

转载请注明原文地址:https://www.9cbs.com/read-124690.html

New Post(0)