Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
SEtting up sendmail
Results 1 to 5 of 5

Thread: SEtting up sendmail

  1. #1

    SEtting up sendmail

    'm trying to get Sendmail setup and running over here and was hoping somebody could check out my processes and maybe fill in some gaps in understanding. Generally here's what I"m doing.....

    1. I un-comment the following lines in /etc/inetd.conf to look as such:

    # Post Office Protocol version 3 (POP3) server:
    pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/popa3d
    # Internet Message Access Protocol (IMAP) server:
    imap2 stream tcp nowait root /usr/sbin/tcpd imapd

    2. After the restart I modify the sendmail.mc file to look like this. If anybody sees anything that's been omitted or that should have been omitted please let me know as I'm not completely sure why I'm using the features that I am, other than it's what seems to be whats commonly used.

    In the section called define(smarthost) im really fuzzy about what needs to go after smtp. is it just the ip address of the server or something else entirely? I'm also a little confused with regard to how to implement the virtualusertables.

    Code:
    divert(-1)dnl
    dnl #
    dnl # This is the sendmail macro config file for m4. If you make changes to
    dnl # /etc/mail/sendmail.mc, you will need to regenerate the
    dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
    dnl # installed and then performing a
    dnl #
    dnl # make -C /etc/mail
    dnl #
    include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
    VERSIONID(`default setup for Slackware Linux')dnl
    OSTYPE(`linux')dnl
    define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun, goaway')dnl
    define(`SMART_HOST',`smtp.your.provider')
    define(`confTO_IDENT', `0')dnl
    define(`confDEF_USER_ID',``8:12'')dnl
    dnl define(`confAUTO_REBUILD')dnl
    define(`confTO_CONNECT', `1m')dnl
    define(`confTRY_NULL_MX_LIST',true)dnl
    define(`confDONT_PROBE_INTERFACES',true)dnl
    define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
    define(`ALIAS_FILE', `/etc/aliases')dnl
    define(`STATUS_FILE', `/var/log/mail/statistics')dnl
    define(`UUCP_MAILER_MAX', `2000000')dnl
    define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
    define(`confAUTH_OPTIONS', `A')dnl
    define(`confAUTH_OPTIONS', `A p')dnl
    dnl define(`confLOG_LEVEL', `9')dnl
    dnl FEATURE(delay_checks)dnl
    FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
    FEATURE(use_cw_file)dnl
    FEATURE(use_ct_file)dnl
    FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
    FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
    FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
    FEATURE(`blacklist_recipients')dnl
    FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
    FEATURE(always_add_domain)dnl
    FEATURE(redirect)dnl
    FEATURE(`no_default_msa',`dnl')dnl
    MASQUERADE_AS(`insert-website-here.com')dnl
    FEATURE(masquerade_envelope)dnl
    FEATURE(masquerade_entire_domain)dnl
    dnl # CUSTOM MODIFICATIONS
    FEATURE(`dnsbl', `ipwhois.rfc-ignorant.org',`"550 Mail from " $&{client_addr} " refused. Rejected for bad WHOIS info on IP of your SMTP server - see http://www.rfc-ignorant.org/"')
    FEATURE(`dnsbl', `proxies.blackholes.easynet.nl', `"550 5.7.1 ACCESS DENIED to OPEN PROXY SERVER "$&{client_name}" by easynet.nl DNSBL (http://proxies.blackholes.easynet.nl/errors.html)"', `')dnl
    FEATURE(`dnsbl', `relays.ordb.org', `"550 Email rejected due to sending server misconfiguration - see http://www.ordb.org/faq/\#why_rejected"')dnl
    FEATURE(`dnsbl', `bl.spamcop.net', `"450 Mail from " $`'&{client_addr} " refused - see http://spamcop.net/bl.shtml"')
    FEATURE(`dnsbl',`sbl.spamhaus.org',`Rejected - see http://spamhaus.org/')dnl
    dnl # END OF MODIFICATIONS
    dnl # CUSTOM CONFIGURATION#1
    MASQUERADE_DOMAIN(localhost)dnl
    MASQUERADE_DOMAIN(localhost.localdomain)dnl
    MASQUERADE_DOMAIN(myurl-goes-here.com)dnl
    dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
    dnl # END OF CUSTOM CONFIGURATION#1
    EXPOSED_USER(`root')dnl
    LOCAL_DOMAIN(`localhost.localdomain')dnl
    MAILER(local)dnl
    MAILER(smtp)dnl
    MAILER(procmail)dnl
    After this I tried the following:
    Code:
    $ cd /usr/share/sendmail/cf/cf
    $ cp sendmail-slackware.mc config.mc
    $ m4 /usr/share/sendmail/cf/m4/cf.m4 config.mc > /etc/mail/sendmail.cf
    The problem here is that it kept throwing up an error that the directory doesnt exist when it clearly does. So, I'm wondering if there's a typo or one of the last two statements are incorrect somehow. I tried making a single statement out of them like so...
    Code:
    $ cp sendmail-slackware.mc config.mc m4 /usr/share/sendmail/cf/m4/cf.m4 config.mc > /etc/mail/sendmail.cf
    but that doesn't want to work either

    TIA

  2. #2
    Hi,

    What's the exact error message?
    My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive.

  3. #3
    Quote Originally Posted by trickster
    Hi,

    What's the exact error message?
    Here's what it always kicks out....
    Code:
    root@localhost:/usr/share/sendmail/cf/cf# cp sendmail-slackware.mc config.mc
    root@localhost:/usr/share/sendmail/cf/cf# m4 /usr/share/sendmail/cf/m4/cf.m4 config.mc > /etc/mail/sendmail.cf
    config.mc:12: m4: Cannot open /usr/share/sendmail-cf/m4/cf.m4: No such file or directory
    as you can see, the first command seems to go through just fine. However when I execute the second one that's when I get the error message. What I find interesting is that the error report converts the forward slash after sendmail to a hyphen and I have no idea why it's doing this.

  4. #4
    Junior Member tuxette's Avatar
    Join Date
    Jan 2006
    Posts
    60
    I've seen similar errors to this in Fedora. You may need to install the M4 package to get it to work. Maybe the sendmail-cf package too.

  5. #5
    I found the problem! GO ME! In the mc file there's a line that says...

    include(`/usr/share/sendmail-cf/m4/cf.m4')dnl

    If I change it to the following, everything goes through without so much as a wrinkle.
    Code:
    include(`../m4/cf.m4')

    Now, my next problem is that when I restart sendmail I'm getting a warning message that reads as follows...
    Code:
    root@localhost# /etc/rc.d/rc.sendmail restart
    Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -b
    Warning: Option: AuthOptions requires SASL support (-DSASL)
    Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-
    What's SASL support and why is it important? Also how can I find out if it's enabled on my system or not?

    TIA

Similar Threads

  1. regarding sendmail
    By lovewadhwa in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 10-24-2006, 06:35 PM
  2. sendmail
    By ammad in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 06-07-2005, 01:39 AM
  3. Sendmail
    By Ashcrow in forum Linux - Hardware, Networking & Security
    Replies: 12
    Last Post: 04-28-2002, 12:41 PM
  4. looking for help on sendmail
    By kyiu in forum Linux - Hardware, Networking & Security
    Replies: 10
    Last Post: 03-25-2002, 03:44 AM
  5. sendmail
    By agar in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 12-23-2001, 08:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •