Problem with sendmail on Solaris 9

Problem with sendmail on Solaris 9

Post by gobi » Fri, 27 May 2005 01:53:30

I have a problem with sendmail 8.12.10 on Solaris 9. I generate my file using m4 from a file which adds the
genericstable and masquerading features etc.  Below is an extract from my file:

FEATURE(`mailertable', DATABASE_MAP_TYPE `-o
FEATURE(`genericstable', DATABASE_MAP_TYPE `-o

I use the genericstable to rewrite emails from certain senders on the
Solaris server to another address; line from /etc/mail/genericstable below:

This way system emails sent by the root account will appear to the

(including mail bounces) will go the local Sys Admins (UnixTeam is a
distribution list).

With Solaris 9's sendmail (8.12.10) the genericstable sender address
rewriting no longer works. Sendmail (8.11.3) on Solaris 8 using a file generated from the same source works fine!

The strange things is that in sendmail rule test mode
(sendmail -bt -d21.4 -d21.12 -d31.2 -d0.4) entering the ruleset

Quote:> 3,1,EnvFromSMTP,4 root

processes the generictable and rewrites the sender address and returns:

Can any sendmail GURUS out there please give me a clue what I'm missing or
what needs to be changed in my for Sendmail version 8.12.x??  I
already added the "FEATURE(`always_add_domain')dnl" and
"GENERICS_DOMAIN(`')dnl" lines above, but this
made no difference.



Problem with sendmail on Solaris 9

Post by gobi » Fri, 27 May 2005 02:59:32

Thanks to help from comp.mail.sendmail, the problem has been resolved by
adding $w.$m to the class G (GENERICS_DOMAIN) since the unqualified sender


1. problem in unstanding sendmail/cf SMTP auth (Solaris 8 Sendmail 8.10) Please Explain

I want to set up a mail server like a provider wants to have.
The machine is an INTEL SOLARIS 8, sendmail is 8.10 like on the
companion CD.
It shall accept mails for local domains but "external" users who wants
to SMTP shall be allowed to do this if they are "customers" which they
can proof with user password.
I have problems with the following part of the documentation.

sendmail/cf says:
Requiring SMTP AUTH for all mails is in general a bad idea, because
then you cannot receive mails from other users (since the cannot
authenticate). So you must do this only on a server that is solely
intended for your own users to send mail, not for a publically
advertised (via MX records) server.

How to do this?
My mailserver is public via MX-records. Outgoing mails (mails to all
domains different from the local ones) shall require SMTP-auth,
mails to the local domains must be received.
Mails from outside must come in without SMTP-auth, because other
mailservers can't authorize themselves which should be clear- so the
local domains are allowed to relay to. So far i understood all this i
CANNOT remove them from the list of local domains (class R).
Or is there another possible solution?

Summary to clarify the problem:
The collected facts and functionallity is:

1.)Domain "mydomain1" and "mydomain2" shall receive mail from all the
world, (works now)
2.)customers shall be able to receive it with POP3 (Qpopper is
running) ,(works now)
3.)all the world shall be able to send mails to this server for the
"mydomains" (works now)
4.)local users shall be able to send mail to all the world (works now
with ip-restriction)(optional with no auth ..)

new item:
5.)(Our) users being outside the local network shall be able to send
mail to all the world after authorisation (does not work until now)

For "3.)" to work, as i understood, relaying to local domains must be
allowed absolutely unrestricted, because other mailserver log in on
port 25 and SMTP to the local domain.

Has someone an idea how to configure that all together?

Is it possible what i want to configure or do i have to decide between
auth7 and access-file?

Is the standard-Sendmail from the companion CD ready for SMTP auth or
do i have to rebuild????

Thank you , desperately waiting for hints

2. Which Files do I D/L!?!

3. Repost from com.mail.sendmail, problem with solaris /etc/hosts and sendmail

4. Problem getting IBM 35SX to see root FS

5. Solaris Sendmail "NOQUEUE: low on space...." when sendmail ain't running!

6. page tables filling non-highmem

7. Sendmail on Solaris 2.2 Probem (easy one for a sendmail wizard!)

8. SCSI Reset

9. Solaris x86 2.4 && firewall sendmail problem

10. Solaris sendmail related problem. Please help!!!

11. Solaris 2.7 problem

12. sendmail problem ? - Solaris 2.2

13. sendmail 8.8.7 on Solaris 2.4 (SPARC) problem