Re: mail on my linux server


Subject: Re: mail on my linux server
From: Paul J. Lucas (pauljlucas@mac.com)
Date: Wed Jan 23 2002 - 18:50:46 MST


On Wed, 23 Jan 2002, Zeke Runyon wrote:

> How do I set things up so that I can send a message to
> username@my.box's.domain.com from an email outside of the system, from the
> internet

        1. Install and run sendmail if it isn't already. (If you don't
           want to use sendmail for whatever reason, you're on your
           own.)

        2. In the file /etc/sendmail.cw, put one line for every domain
           your machine will accept mail for, e.g.:

                   # sendmail.cw - include all aliases for your machine here.
                domain.com

        3. Create a sendmail.mc file such as (substituting domain.com):

                include(`../m4/cf.m4')
                define(`confDEF_USER_ID',``8:12'')
                OSTYPE(`linux')
                MASQUERADE_AS(domain.com)
                MASQUERADE_DOMAIN(domain.com)
                undefine(`UUCP_RELAY')
                undefine(`BITNET_RELAY')
                define(`confAUTO_REBUILD')
                define(`confTO_CONNECT', `1m')
                define(`confTRY_NULL_MX_LIST',true)
                define(`confDONT_PROBE_INTERFACES',true)
                define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
                FEATURE(`access_db')
                FEATURE(`always_add_domain')
                FEATURE(`local_procmail')
                FEATURE(`masquerade_envelope')
                FEATURE(`relay_entire_domain')
                FEATURE(`smrsh',`/usr/sbin/smrsh')
                FEATURE(`use_cw_file')
                FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
                MAILER(procmail)
                MAILER(smtp)

        4. Generate a .cf file from a .mc file saving the original. As
           root:

                cd /etc
                cp sendmail.cf sendmail.cf-orig
                cd /usr/lib/sendmail-cf/cf
                m4 sendmail.mc > /etc/sendmail.cf

        5. Send a HUP signal to the sendmail process.

        6. If you have any kind of firewall, you need to allow port 25.

        You should be good to go. You need the masquerading stuff
        above only if you want to be able to use your mail machine to
        relay mail for any machine on your internal LAN if you have
        one.

> and make it so I can check this mail from a regular mail program via POP?

        I personally don't like POP mail, but: install and run qpopper.
        (You get it free from Quallcomm.) Read the docs: it's fairly
        straightforward.

        - Paul



This archive was generated by hypermail 2a24 : Wed Jan 23 2002 - 19:06:26 MST