Re: [OpenIndiana-discuss] Help, please! Starting to use postfix in an OI151_a5 environment, from scratch

2012-07-16 Thread Chris Ridd

On 16 Jul 2012, at 13:31, Gary Gendel wrote:

> What I do is to take the time to backup the /usr/lib/sendmail for all three 
> programs and then do a symbolic link to the one needed (in my case it's 
> postfix).  The reason I do this is that, since sendmail is part of the 
> consolidation, this binary is sometimes overwritten when you upgrade OI.  
> There is a plan somewhere to handle wholesale replacement of sendmail with 
> another MTA better, but I don't know what the current state is.

It looks like IPS does have a solution for handling alternative versions of a 
tool - package mediators. It is done with symlinks and annotations in the pkg 
manifests.

Is the intention to use mediators?

Chris

signature.asc
Description: Message signed with OpenPGP using GPGMail
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Help, please! Starting to use postfix in an OI151_a5 environment, from scratch

2012-07-16 Thread Jacek 'Szumak' Kotlarski

Hi Hans!
At the beginning I would like to apologize for my English.

W dniu 16.07.2012 13:58, Hans J. Albertsson napisaƂ(a):


Today's first question: OI has the SMF stuff: this confuses some 
issues.

I assume I'm first supposed to configure the various params for
postfix, like myhostname, myorigin, mydomain plus many more.

Then I'm supposing I should do

# svcadm disable sendmail
# svcadm enable postfix


For example:

# svcs -a |grep -E 'postfix|sendmail'
disabled   lip_14   svc:/network/smtp:sendmail
disabled   lip_14   svc:/network/sendmail-client:default
online lip_14   svc:/network/smtp:postfix

so you can:

# svcadm disable svc:/network/smtp:sendmail
and
# svcadm enable svc:/network/smtp:postfix

short form "sendmail" and "postfix" would work too if not be ambiguous.


Is this correct?

Will this do postfix start for me, and will "svcadm refresh postfix"
(or restart) do postfix reload?


yes, but You should check state (svcs postfix) after.
"maintenance" means a problem with the configuration.


Anything else you might want to add as advice for me at this point?

I'm basically trying to do the simple single domain server as in
Chapter 3 in The Book Of Postfix by Hildebrandt and Koetter.


FAQ's and HowTo's, excellent docs:
http://www.postfix.org/docs.html

In my configuration:

postfix from pkgsrc with dovecot:
smtpd_sasl_type = dovecot
virtual domain|maildir|alias = postgres
greylisting and spf
dspam (with dovecot - spam tagging per user)

and roundcube as webmail.
I don't use spamassassin anymore. Too complicated in maintenance.

Good luck!

--
Jacek Kotlarski
JID:szu...@jabber.k-informatix.com;GG:2052377;Skype:jkotlarski

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Help, please! Starting to use postfix in an OI151_a5 environment, from scratch

2012-07-16 Thread Gary Gendel

Hans,

Unfortunately, many programs expect /usr/bin/sendmail to work. That 
means that you either have to keep sendmail running, or replace 
/usr/lib/sendmail with the sendmail.postfix version.  If you do the 
latter, then any upgrade that includes sendmail will replace whatever 
you put in /usr/lib/sendmail with what it expects.


I made a symbolic link from /usr/lib/sendmail to sendmail.postfix so 
these programs work. Then I check to make sure this symbolic link wasn't 
over-written when I upgrade OI. Most time it doesn't replace the 
symbolic link, but occasionally it does.


I run aide to validate that non of the system files have changed, so I 
can scan that after an update to see if any of my hacks need to be re-done.


Gary

On 7/16/12 8:47 AM, Hans J. Albertsson wrote:

Will the SFE postfix package actually REPLACE sendmail??

In my system, using the SFEpostfix package, there's a
/usr/sbin/sendmail.postfix
that's an executable, and
/usr/sbin/sendmail
which is a symlink to /usr/lib/sendmail.

There's also a symlink /usr/lib/sendmail.postfix that points to 
/usr/sbin/sendmail.postfix


sum /usr/lib/sendmail is different from sum /usr/sbin/sendmail.postfix
so I assume your statement is only true for some other form of postfix 
installation??


On 2012-07-16 14:31, openindiana-discuss-requ...@openindiana.org wrote:

Message: 8
Date: Mon, 16 Jul 2012 08:31:40 -0400
From: Gary Gendel
To: Discussion list for OpenIndiana

Subject: Re: [OpenIndiana-discuss] Help, please! Starting to use
    postfix in an OI151_a5 environment, from scratch
Message-ID:<500409ac.1030...@genashor.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hans,

You have the basics right.  The problem is that there is no clean way to
replace sendmail in OI yet.  When you install postfix, it will overwrite
/usr/lib/sendmail.


Thanks for the below pointer. I actually missed that.


Besides disabling sendmail, you need to disable sendmail-client as
well.  The refresh on postfix should cause it to reload the
configuration file.



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss




___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Help, please! Starting to use postfix in an OI151_a5 environment, from scratch

2012-07-16 Thread Hans J. Albertsson

Will the SFE postfix package actually REPLACE sendmail??

In my system, using the SFEpostfix package, there's a
/usr/sbin/sendmail.postfix
that's an executable, and
/usr/sbin/sendmail
which is a symlink to /usr/lib/sendmail.

There's also a symlink /usr/lib/sendmail.postfix that points to 
/usr/sbin/sendmail.postfix


sum /usr/lib/sendmail is different from sum /usr/sbin/sendmail.postfix
so I assume your statement is only true for some other form of postfix 
installation??


On 2012-07-16 14:31, openindiana-discuss-requ...@openindiana.org wrote:

Message: 8
Date: Mon, 16 Jul 2012 08:31:40 -0400
From: Gary Gendel
To: Discussion list for OpenIndiana
        
Subject: Re: [OpenIndiana-discuss] Help, please! Starting to use
        postfix in an OI151_a5 environment, from scratch
Message-ID:<500409ac.1030...@genashor.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hans,

You have the basics right.  The problem is that there is no clean way to
replace sendmail in OI yet.  When you install postfix, it will overwrite
/usr/lib/sendmail.


Thanks for the below pointer. I actually missed that.


Besides disabling sendmail, you need to disable sendmail-client as
well.  The refresh on postfix should cause it to reload the
configuration file.



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Help, please! Starting to use postfix in an OI151_a5 environment, from scratch

2012-07-16 Thread Gary Gendel

Hans,

You have the basics right.  The problem is that there is no clean way to 
replace sendmail in OI yet.  When you install postfix, it will overwrite 
/usr/lib/sendmail.  I actually have two replacements for sendmail, I use 
Qmail for non-authorized access on port 25 because of it's superior spam 
capabilities using the spamdyke front-end.  I do have spamassassin on 
the backend to catch the few emails that get through, but that requires 
a patched version of Qmail.  I use Postfix for authorized access on port 
587 (submission) for users which has no spam checking and allows relaying.


BTW, the only bad thing about using Qmail this way is that it rejects 
mail to non-existent users later on in the process using a bounce 
message. This opens the door for backscatter spam (using the bounce to 
send spam). Spamdyke reduces this possibility, but hasn't implemented a 
true block for this (reject bad users before accepting mail) yet. This 
is in the works.


What I do is to take the time to backup the /usr/lib/sendmail for all 
three programs and then do a symbolic link to the one needed (in my case 
it's postfix).  The reason I do this is that, since sendmail is part of 
the consolidation, this binary is sometimes overwritten when you upgrade 
OI.  There is a plan somewhere to handle wholesale replacement of 
sendmail with another MTA better, but I don't know what the current 
state is.


Besides disabling sendmail, you need to disable sendmail-client as 
well.  The refresh on postfix should cause it to reload the 
configuration file.


As for dovecot (and qmail), I've been using that for so long (starting 
with SunOS), that I always compiled and installed it myself.  Some day 
I'll replace dovecot with the SFE version, but I'm in no rush.


Gary

On 7/16/12 7:58 AM, Hans J. Albertsson wrote:
I am in the process of starting up a mailserver for about a thousand 
mail users.


This is on an OI151_a5 server.

I will use postfix, dovecot and spamassassin, possibly clamav.

I am right now doing a test setup, sort of a proof of concept.

My problem is that all the documentation for dovecot and postfix is 
NOT very specific to an OI installation, so I need some help in 
understanding

where OI differs from what postfix and dovecot docs assume.

Today's first question: OI has the SMF stuff: this confuses some issues.
I assume I'm first supposed to configure the various params for 
postfix, like myhostname, myorigin, mydomain plus many more.


Then I'm supposing I should do

# svcadm disable sendmail
# svcadm enable postfix

(consider "# " as the root prompt)

Is this correct?

Will this do postfix start for me, and will "svcadm refresh postfix" 
(or restart) do postfix reload?


Anything else you might want to add as advice for me at this point?

I'm basically trying to do the simple single domain server as in 
Chapter 3 in The Book Of Postfix by Hildebrandt and Koetter.


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss




___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss