SuSE 8.0 sendmail nullclient config.
I'm having problems trying to configure workstations to act as as they used to under 6.4.. The objective is to hide the local workstation's FQDN, deliver all mail to the server known as MAIL.FOO.COM and make the header show user@foo.com When I try to configure using nullclient mode..I always have an error. Without ripping out the integrated support for sendmail within Yast & SuSEconfig and manually configuring Sendmail 8.12.x how can I fix this? I hate to have to make ugly hacks since I want to keep all the machines as standard as possible. Am I missing anything simple? Thanks Len # SuSEconfig Starting SuSEconfig, the SuSE Configuration Tool... Running in full featured mode. Reading /etc/rc.config and updating the system... Executing /sbin/conf.d/SuSEconfig.3ddiag... Executing /sbin/conf.d/SuSEconfig.aaa_at_first... Executing /sbin/conf.d/SuSEconfig.alljava... Executing /sbin/conf.d/SuSEconfig.apache... Executing /sbin/conf.d/SuSEconfig.doublecheck... Executing /sbin/conf.d/SuSEconfig.fonts... Updating fonts.scale for truetype Updating fonts.scale for Type1 Updating fonts.scale for Speedo Updating fonts.scale for CID Executing /sbin/conf.d/SuSEconfig.groff... Executing /sbin/conf.d/SuSEconfig.hostname... Executing /sbin/conf.d/SuSEconfig.inittab... Executing /sbin/conf.d/SuSEconfig.ircii... Executing /sbin/conf.d/SuSEconfig.isdn... Modify isdn.conf Executing /sbin/conf.d/SuSEconfig.ispell... Executing /sbin/conf.d/SuSEconfig.kdm3... Executing /sbin/conf.d/SuSEconfig.man_info... Executing /sbin/conf.d/SuSEconfig.news... Executing /sbin/conf.d/SuSEconfig.perl... Executing /sbin/conf.d/SuSEconfig.permissions... Executing /sbin/conf.d/SuSEconfig.profiles... Executing /sbin/conf.d/SuSEconfig.sendmail... *** ERROR: FEATURE() should be before MAILER() Installing new /etc/sendmail.cf Executing /sbin/conf.d/SuSEconfig.sortpasswd... Executing /sbin/conf.d/SuSEconfig.susehilf... Executing /sbin/conf.d/SuSEconfig.susewm... Executing /sbin/conf.d/SuSEconfig.xdm... Finished. # Here is /etc/sysconfig/mail contents: # # From:-Line in email and News postings # (otherwise the FQDN is used) # FROM_HEADER="FOO.COM" # # Set this to no, if SuSEconfig should not generate the configuration # files (e.g. you want to generate your /etc/sendmail.cf yourself). # Do you want to generate a sendmail-configuration /etc/sendmail.cf from # parameters given in /etc/sysconfig/sendmail then use "yes" # MAIL_CREATE_CONFIG="yes" # A null client is a machine that can only send mail. It receives no # mail from the network, and it does not deliver any mail locally. # A null client typically uses POP or NFS for mailbox access. # NULLCLIENT="yes" # # Set this to "yes" if mails from remote should be accepted # this is necessary for any mail server. # If set to "no" or empty the only mails from localhost # are accepted. # SMTPD_LISTEN_REMOTE="no" Here is /etc/sysconfig/sendmail contents: # # do not deliver any email locally, but send all email to another host # this can just be used with another system that has the same users on it # and you probably also want to set the FROM_HEADER to the other host # SENDMAIL_RELAY="MAIL.FOO.COM" # # Used if no SENDMAIL_RELAY is given and local mails are send with local names # that aren't local accounts or aliases. All these mails are redirected # to the user given defined with SENDMAIL_LUSER, e.g. # SENDMAIL_LUSER="postmaster" or SENDMAIL_LUSER="root". Note that this may # violate the privacy of those mails. # SENDMAIL_LUSER="" # # with what parameters should sendmail be started? # normal sites use "-bd -q30m -om". if you set SENDMAIL_EXPENSIVE and you # have a dialup ISDN connection, you probably want to set this to # "-bd -om" and run "sendmail -q" from your crontab. # SENDMAIL_ARGS="-L sendmail -Am -bd -q30m -om" # # with what parameters should sendmail _client_ be started? # SENDMAIL_CLIENT_ARGS="-L sendmail-client -Ac -q30m" # # sendmail will only queue email in /var/spool/mqueue and will only start # to deliver it if "sendmail -q" is run # SENDMAIL_EXPENSIVE="no" # # sendmail will not try to canonify hostnames in your email # so much less DNS-queries are send # you probably want to enable this on a SENDMAIL_EXPENSIVE system. # Don't forget to add the local, the mail hub, smart, and mail relay host # with their IP addresses and the corresponding Full Qualified Domain Names # to /etc/hosts. For most # people using dial on demand SENDMAIL_NOCANONIFY # should work and no NODNS (see /etc/sysconfig/mail) is required. # SENDMAIL_NOCANONIFY="no" # # This option forbids DNS-queries. It requires a well configured # /etc/hosts. Sendmail users should also read /etc/sysconfig/sendmail # the description of the variable SENDMAIL_NOCANONIFY. NODNS="no" # # If set to yes, mail that will be delivered via smtp will stay # in the queue unless someone issues "sendmail -q" or equivalent. # A correct FQHOSTNAME for the local host is required. DIALUP="no" # # these domains can additional to the local domains be changed # in /etc/mail/genericstable # SENDMAIL_GENERICS_DOMAIN="" # # this is useful if you have several domains with disjoint namespaces # hosted on the same machine. # MASQUERADE_DOMAINS="FOO.COM" # # enable SMTP AUTHENTICATION to other servers if required, possible # values are plain, gssapi, digest-md5, and cram-md5. # Please not that most providers only know about `plain' which means # that the user data will not be encrypted. # You will have to identify yourself using the information in # /etc/mail/auth/auth-info. # SMTP_AUTH_MECHANISMS="" # # enable SMTP AUTHENTICATION as a server, for an explanation read # /usr/share/sendmail/README, /usr/share/doc/packages/sendmail/op.txt.bz2, # and http://www.sendmail.org/~ca/email/auth.html. # Possible values are gssapi, digest-md5, and cram-md5. Note that # `plain' should be used because data will not be encrypted and # that more than one value separated by spaces is allowed. # SMTP_AUTH_SERVER="" # # STARTTLS certification, for an explanation read # /usr/share/doc/packages/sendmail/op.txt.bz2 and # http://www.sendmail.org/~ca/email/starttls.html # The certification and key files are placed at # /etc/mail/certs/ as CA.cert.pem, MYServer.cert.pem, # MYServer.key.pem (for STARTTLS server) and # MYClient.cert.pem, MYClient.key.pem (for STARTTLS client) # possible values are `server', `client', or `both'. # STARTTLS="" # # Normally all upper case letters of the keys in the db files of sendmail # will be folded to lower case. You may change this to "no" and break the # normal behaviour at your own risk. # SENDMAIL_DB_FOLD="yes" # #
On Tue, 16 Jul 2002, Len Rose wrote:
When I try to configure using nullclient mode..I always have an error.
Do you want to setup a nullclient sendmail configuration?
From the cf.README you get:
[...] nullclient This is a special case -- it creates a configuration file containing nothing but support for forwarding all mail to a central hub via a local SMTP-based network. The argument is the name of that hub. The only other feature that should be used in conjunction with this one is FEATURE(`nocanonify'). No mailers should be defined. No aliasing or forwarding is done. [...] To use this change the nullclient option in yast /system-sysconfig editor) or in the /etc/mail/linux.nullclient.mc: FEATURE(`nullclient', `mailhub.domain.notused')dnl
The objective is to hide the local workstation's FQDN, deliver all mail to the server known as MAIL.FOO.COM and make the header show user@foo.com
Or do you want to masquerade the header from-field with user@foo.com?
Executing /sbin/conf.d/SuSEconfig.sendmail... *** ERROR: FEATURE() should be before MAILER()
You probable changed the linux.mc file in /etc/mail? Oliver -- ... don't touch the bang-bang fruit
Hi.. despite whatever I do I still seem to get an error when I attempt to use this: [snip] Executing /sbin/conf.d/SuSEconfig.sendmail... *** ERROR: FEATURE() should be before MAILER() Installing new /etc/sendmail.cf [snip] I didn't modify linux.mc or nullclient.mc.. On Wed, Jul 17, 2002 at 07:11:19AM +0200, Oliver Fuchs wrote: [snip]
[...]
To use this change the nullclient option in yast /system-sysconfig editor) or in the /etc/mail/linux.nullclient.mc:
FEATURE(`nullclient', `mailhub.domain.notused')dnl
The objective is to hide the local workstation's FQDN, deliver all mail to the server known as MAIL.FOO.COM and make the header show user@foo.com
Or do you want to masquerade the header from-field with user@foo.com?
Executing /sbin/conf.d/SuSEconfig.sendmail... *** ERROR: FEATURE() should be before MAILER()
You probable changed the linux.mc file in /etc/mail?
Oliver --
On Wed, 17 Jul 2002, Len Rose wrote:
Hi.. despite whatever I do I still seem to get an error when I attempt to use this:
[snip] Executing /sbin/conf.d/SuSEconfig.sendmail... *** ERROR: FEATURE() should be before MAILER() Installing new /etc/sendmail.cf [snip]
I didn't modify linux.mc or nullclient.mc..
Hi, o.k but did you touch the sendmail.cf file? So try this ... copy as root /etc/sendmail.cf to /etc/sendmail.cf.old and delete /etc/sendmail.cf ... run YAST again but before that check your entries you did in your sysconfig ... but do you want to setup a nullclient or a normal sendmail.cf? Oliver -- ... don't touch the bang-bang fruit
Hi..I'm sorry for beating this horse to death, thank you for your patience. I believe /sbin/conf.d/SuSEconfig.sendmail is broken. I'm still generating the error below no matter what I do, or choose. The relevant section is: ############ snip ################## if test "$MAIL_CREATE_CONFIG" != no ; then if test -n "$NULLCLIENT" ; then (m4 - > $r/etc/sendmail.cf.SuSEconfig) <<-EOF divert(-1) include(\`$r/usr/share/sendmail/m4/cf.m4') divert(0)dnl VERSIONID(\`@(#)Setup for SuSE Linux $VERSION (SuSE Linux) $DATE') OSTYPE(\`suse-linux')dnl FEATURE(\`nullclient', \`$NULLCLIENT')dnl FEATURE(\`nocanonify')dnl LOCAL_CONFIG EOF else gen_sendmail_m4 | m4 - > $r/etc/sendmail.cf.SuSEconfig ############ snip ################## Can someone test this scenario at SuSE? Len On Wed, Jul 17, 2002 at 11:30:29PM +0200, Oliver Fuchs wrote:
On Wed, 17 Jul 2002, Len Rose wrote:
Hi.. despite whatever I do I still seem to get an error when I attempt to use this:
[snip] Executing /sbin/conf.d/SuSEconfig.sendmail... *** ERROR: FEATURE() should be before MAILER() Installing new /etc/sendmail.cf [snip]
I didn't modify linux.mc or nullclient.mc..
Hi, o.k but did you touch the sendmail.cf file? So try this ... copy as root /etc/sendmail.cf to /etc/sendmail.cf.old and delete /etc/sendmail.cf ... run YAST again but before that check your entries you did in your sysconfig ... but do you want to setup a nullclient or a normal sendmail.cf?
Oliver -- ... don't touch the bang-bang fruit
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
Hi.. Actually I was confused. The problem is in /sbin/conf.d/SuSEconfig.sendmail but the reason none of this is working (nullclient config) is that this script (SuSEconfig.sendmail) doesn't create a nullclient submit.cf. It is broken and needs to be fixed. I can't be the only one who has encountered this. It only modifies /etc/sendmail.cf, but as well all know sendmail 8.12.x uses /etc/mail/submit.cf for delivery, not /etc/sendmail.cf.. There is no provision in gen_submit_m4() to handle creating the proper configurations. I'd say this was a critical flaw and a fix should be issued asap. I don't know about anyone else but workstations often deliver all mail (even local mail) to a mailhub. Thanks.. Len [snipped]
Hi, meanwhile I did a little testing ... the error in SuSEconfig has nothing to do with the submit.cf file but with the linux.nullclient.cf file ... I did a m4 /etc/mail/linux.nullclient.mc > /etc/sendmail.cf and it gives me exactly the error you are complaining about 'FEATURE() should be before MAILER' ... you only have to set FEATURE(`nocanonify')dnl in front of FEATURE(`nullclient', `mailhub.domain.notused')dnl and the error message disappears ... unfortunately you cannot change it within YAST otherwise he/she/it complains that you changed the mc file ... so the only thing i can recommend you is to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail and run mc4 linux.nullclient.mc by yourself. Oliver -- ... don't touch the bang-bang fruit
On Thursday 18 July 2002 09:03, Oliver Fuchs wrote:
Hi, meanwhile I did a little testing ... the error in SuSEconfig has nothing to do with the submit.cf file but with the linux.nullclient.cf file ... I did a m4 /etc/mail/linux.nullclient.mc > /etc/sendmail.cf and it gives me exactly the error you are complaining about 'FEATURE() should be before MAILER' ... you only have to set FEATURE(`nocanonify')dnl in front of FEATURE(`nullclient', `mailhub.domain.notused')dnl and the error message disappears ... unfortunately you cannot change it within YAST otherwise he/she/it complains that you changed the mc file ... so the only
Have a look in /var/adm/SuSEconfig/md5 Perhaps you can recreate the md5sums of the changed file to stop YaST complaining ;-) (Untested... ;-P )
thing i can recommend you is to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail and run mc4 linux.nullclient.mc by yourself.
Leen
participants (3)
-
Leendert Meyer
-
Len Rose
-
Oliver Fuchs