Package: smail
Version: 3.2.0.115-5.1

The config generator ought to add
  smtp_bad_mx_targets=
in the smarthost cases.  This is because with a smarthost
configuration, the host and the smarthost will often have RFC1918
addresses, and the presumably trustworthy DNS admins for the smarthost
domain control the addresses anyway.


Full details of what I did and what happened:


I used the config generator to make a new configuration for my
workstation, as follows:


Setting up smail (3.2.0.115-5.1) ...

I can do certain kinds of automatic configuration of your mail system, by
asking you a number of questions. Later you may want to confirm and/or correct
your answers. In any case, comprehensive information on configuring Smail is
in smail(5) and in /usr/share/doc/smail/ .

You must choose one of the options below:
 (1) Internet site: you send and receive Internet mail on this
    machine, using SMTP over TCP/IP, select this if you have a smarthost 
    reachable over SMTP.
 (2) UUCP to smarthost (upstream site):
    You send and receive mail via UUCP; outbound mail is sent to your
    smarthost (probably your service provider) for routing and delivery.
 (3) No mail is to be delivered or routed here.  Any mail generated on this 
    system is sent to a central mail switch using SMTP. This configuration is
    for workstation, which have mounted /var/mail from a central server.
 (4) Local delivery only:
    You are not on a network.  Mail for local users is delivered.
 (5) No configuration will be done now; your mail system will be broken and
    should not be used. Use /usr/sbin/smailconfig as root, later.
Select a number from 1 to 4, from the list above.
Enter value (default=`1', `x' to restart): 3

What is the `visible' mail name of your system ?
This will appear on From: lines of outgoing messages.
Enter value (default=`balvenie.ncipher.com', `x' to restart): ncipher.com

You have to tell me where to send all locally-generated mail.
Using ncipher.com will result in mail for local users being sent
to whatever system the rest of the world thinks deals with mail for
that address - that had better not be this machine, in that case.
Enter value (default=`ncipher.com', `x' to restart): mail.ncipher.com


The following configuration has been entered:

Mail generated on this system will have `ncipher.com' used
as the host part (after the @) in the From: field and similar places.

Message-ID's, Received lines, etc. will use the system's canonical
hostname, which is currently set to balvenie.ncipher.com.

All mail is sent to mail.ncipher.com via SMTP and TCP/IP (using any
MX records in the DNS).

Mail from the system background tasks will be sent to
 [EMAIL PROTECTED]

Is this OK ?  Hit Return or type `y' to confirm it and install,
or `n' to make changes (in which case we'll go round again, giving you
your previous answers as defaults.     (y/n) 

You have to select a method starting smail:
The decision as to whether to use a smail daemon, or the inet
daemon depends upon how much mail passes through your site and whether
or not you can always spare 300K of virtual memory.
(1) Generate a line in /etc/inetd.conf. For every remote-connections a
    smail session is started. It is the standard.
(2) To invoke a smail daemon at system boot time.
Select a number from 1 to 2, from the list above.
Enter value (default=`1', `x' to restart): 2

Configuration installed.


Would you like to send a test message now ?  Select one of:

 Return or Y  Yes, test offsite delivery with a message to Harald Alvestrand's
               Linux Counter project - you should then receive an autoreply
               to [EMAIL PROTECTED]

              Do not use this option until mail routing to your machine has
               been properly enabled, please !

     L        Just a local message from [EMAIL PROTECTED]
               to [EMAIL PROTECTED]

     N        No, thanks.  (You can do this later using /usr/sbin/smailtest.)

Send a test message now ?  (y/l/n)    y
smail: 02/15/2005 15:23:07: [29235] [m1D14Xb-00BxdpC] mail moved to 
/var/mail/error/1D14Xb-00BxdpC
smail: 02/15/2005 15:23:09: [29236] [m1D14Xb-00BxdoC] mail moved to 
/var/mail/error/1D14Xb-00BxdoC
smail failed 17664/
Can't execute smailconfig.
Good. You have a recent smail configuration
Starting mail transport agent: smail... failed.


This corresponds to this log message:

02/15/2005 15:23:57: [29314] [m1D14YN-00BxdqC] Failed TO:[EMAIL PROTECTED] 
ROUTER:smart_host TRANSPORT:smtp ERROR:(ERR164) transport smtp: DNS error: The 
MX domain '(null)' target hostname 'mail.ncipher.com' has an unauthorised 
address of [172.19.133.171]: RFC-1918 addresses are never valid for MX targets 
on the public Internet!.


After a quick look at the manual, I added
  smtp_bad_mx_targets=
and all was well.


Thanks,
Ian.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to