You are not logged in.

#1 2004-12-09 10:02:35

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Postfix wiki doc.

My initial stab at a postfix doc for wiki.
It will eventually cover a simple install of postfix, which will supply web based email ONLY. The doc should be general enough in parts to allow extrapolation, and might change quite a bit by the time it gets done, but right now it is focused on webmail only.

I also hope to get around to setting up spamassasin and clamav on it.
Sorry if the doc proceeds slowly, but I am learning as I do it.
wink

oh, almost forgot the linky.  tongue
http://wiki2.archlinux.org/index.php/Postfix%20How%20To

It is linked off the wiki page describing...me!
http://wiki2.archlinux.org/index.php/CacTus


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#2 2004-12-14 23:10:28

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Postfix wiki doc.

I have more or less finished up the wiki doc.
It currently uses map files of type "hash", but as soon as postfix gets compiled with mysql support, that will change.  wink


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2004-12-15 09:28:25

Winkie
Member
Registered: 2004-09-30
Posts: 59

Re: Postfix wiki doc.

cactus wrote:

I have more or less finished up the wiki doc.
It currently uses map files of type "hash", but as soon as postfix gets compiled with mysql support, that will change.  wink

Learn LDAP please, MySQL is totally inappropriate for this, LDAP is supposed to be a directory server, hell email CLIENTS use it.

Offline

#4 2004-12-15 10:13:54

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Postfix wiki doc.

I know ldap thank you very much. I chose mysql because that is what I wanted to use for it for the time being.
*shrug*
If you don't like it then by all means, use something else.

LDAP was based off the horribly overcomplicated x500 architecture. LDAP -- lightweight directory access protocol..lightweight wheas x500 directory architecture could easily be considered heavyweight..hell, it even has its own cert portion to the architecture (where x.509 certs come from).
LDAP is much quicker for searches, slow for creation of entries. True, it would be suitable for a mail setup, but I didn't want to deal with the extra hassle of wrangling with openldap. openldap has some issues that I did not feel like dealing with for the setup..especially for  what is a relatively simple setup.

but enough rationalization..feel free to do it any way you like, by all means.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2004-12-15 10:32:29

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: Postfix wiki doc.

nice wiki cactus, tnx.

cactus wrote:

but enough rationalization..feel free to do it any way you like, by all means.

exactly - thats what wiki is all about  wink

Offline

#6 2004-12-15 12:24:03

Winkie
Member
Registered: 2004-09-30
Posts: 59

Re: Postfix wiki doc.

cactus wrote:

I know ldap thank you very much. I chose mysql because that is what I wanted to use for it for the time being.

Fair enough, i'm just sick of seeing people use MySQL where their rationale is 'lol LDAP sux who would use that', then ask how to create a completely integrated accounts system (pam_ldap, nss_ldap etc)

but enough rationalization..feel free to do it any way you like, by all means.

As you're clearly not a moron i'll just add my twopenneth in whenever you're ready, LDAP is a pain yes, but it's still bloody useful.

Offline

#7 2004-12-15 21:13:48

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Postfix wiki doc.

Winkie wrote:

LDAP is a pain yes, but it's still bloody useful.

Agreed.  8)

As an aside, what schema do you use for mail? I setup an LDAP centralized user account a while back (system logins controlled by ldap), but always seemed to have trouble finding a reasonable mail schema that didn't require creating multiple entries for each user. The doc is here: http://solarblue.net/docs/ldap.htm
It is redhat specific, but that is what I was using back then.  wink


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2004-12-16 11:29:07

Winkie
Member
Registered: 2004-09-30
Posts: 59

Re: Postfix wiki doc.

cactus wrote:
Winkie wrote:

LDAP is a pain yes, but it's still bloody useful.

As an aside, what schema do you use for mail? I setup an LDAP centralized user account a while back (system logins controlled by ldap), but always seemed to have trouble finding a reasonable mail schema that didn't require creating multiple entries for each user. The doc is here: http://solarblue.net/docs/ldap.htm
It is redhat specific, but that is what I was using back then.  wink

I'm currently not using a mail schema, but to be honest i'm not sure. I'm currently fiddling with pam_ldap and nss_ldap and trying to figure a way to get both windows and linux machines in this building consolidated, that and a trillion other things.

I'll let you know when the mail schema issue comes up though, it's going to be a while yet sad

Offline

#9 2004-12-16 16:42:05

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Postfix wiki doc.

Winkie wrote:

I'm currently fiddling with pam_ldap and nss_ldap and trying to figure a way to get both windows and linux machines in this building consolidated, that and a trillion other things.

Well, take a look at my ldap doc. http://solarblue.net/docs/ldap.htm
It is somewhat redhat specific, but it might help out a little. I was successful getting linux machines to login using it. As for windows machines, I used pGina (http://pgina.xpasystems.com/) to get it to login with ldap. With windows services for unix, you can then mount nfs shares for user dirs I think...I haven't fiddled with it in a while though.

Good luck. Getting windows to share a linux login is like trying to wrestle a greased bear.  wink

Edit: Looks like postfix is not built with ldap support either.
[user@machine ~] $ postconf -m
static
cidr
pcre
nis
regexp
environ
proxy
btree
unix
hash


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#10 2004-12-17 00:07:08

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Postfix wiki doc.

Updated the wiki doc a bit. Clarified some things, obfuscated others..
wink

Added a clafication section at the end..it is a bit messy, but I think it was needed.
Added virtual_map so that you can map accounts that you don't want mail delivered to, but are generally required (like mailer-daemon@mailhost).


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#11 2004-12-17 10:04:18

Winkie
Member
Registered: 2004-09-30
Posts: 59

Re: Postfix wiki doc.

cactus wrote:

Well, take a look at my ldap doc. http://solarblue.net/docs/ldap.htm
It is somewhat redhat specific, but it might help out a little. I was successful getting linux machines to login using it. As for windows machines, I used pGina (http://pgina.xpasystems.com/) to get it to login with ldap. With windows services for unix, you can then mount nfs shares for user dirs I think...I haven't fiddled with it in a while though.

Good luck. Getting windows to share a linux login is like trying to wrestle a greased bear.  wink

Cheers, i'm actually looking at making samba a pdc and it run the domain, I think it can pipe requests back to ldap, but i'm not 100% unfortunately i have loads of other crap to do sad

With regards to LDAP support, all that's needed is a small patch to the PKGBUILD and it should only be a makedepends:

@@ -6,6 +6,7 @@
 pkgrel=3
 pkgdesc="Secure, fast, easy to administer drop in replacement for Sendmail (MTA)"
 depends=('glibc' 'db' 'pcre')
+makedepends=('openldap')
 # leave etc/mail/aliases in backup() for a few versions until 
 # people have migrated or made other provisions
 backup=(etc/mail/aliases etc/postfix/aliases etc/postfix/virtual etc/postfix/relocated 
@@ -24,6 +25,7 @@
 
 build() {
     cd $startdir/src/$pkgname-$pkgver
+    make makefiles CCARGS="-DHAS_LDAP" AUXLIBS="-lldap"
     make OPT="${CFLAGS}" || return 1
 
     sh postfix-install -non-interactive 

Ah well, hopefully it'll be put in sooner or later, my customised version seems to work fine.

Offline

#12 2005-01-09 04:01:15

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Postfix wiki doc.

The postfix doc is pretty much finished. Now I just need people to go over it and tell me what parts are completely hosed.
wink

http://wiki2.archlinux.org/index.php/Postfix%20How%20To


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#13 2006-04-13 19:28:57

marcob
Member
From: B-town USA
Registered: 2004-11-10
Posts: 38
Website

Re: Postfix wiki doc.

cactus wrote:

Well, take a look at my ldap doc. http://solarblue.net/docs/ldap.htm
It is somewhat redhat specific, but it might help out a little.

Cactus, do you have any idea whereabouts I might find that document? It's no longer at that location.

I was able to set up a postfix-mysql-courier installation, thanks to your Wiki article, and my next step is to get the same setup going using ldap.

Thanks much

Offline

#14 2006-04-13 20:00:51

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Postfix wiki doc.

Sure.
Here  it is

It is pretty damn old as far as how to's go. Last updated in early 2004. o.O

I recently just moved it out of my own wiki, and just slapped it into my blog. I tend to move things around once in a while. wink


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#15 2006-04-13 20:36:18

marcob
Member
From: B-town USA
Registered: 2004-11-10
Posts: 38
Website

Re: Postfix wiki doc.

Mucho graciàs!

I know it's not exactly fresh, and I've found plenty of other documentation on the subject, but a little more info can't hurt (I hope!)

Offline

#16 2006-08-22 21:06:59

Blayder
Member
Registered: 2006-07-29
Posts: 43

Re: Postfix wiki doc.

Didn't want to start new post, because this seems just a good place to ask some question about this same guide big_smile

Used your guide and it really helped me to setup mail, but got few probs with it...

As understood you create users via mysql, by adding new records to the users table (looked in squirrelmail for any reg page, but didn't find it...), but when i try to log in with newely created account, i'm unable to do it, because no folders being created for that user... the only way to do it is to send that user an email from any other account and only then he'll be able to login with no problems...

So i wanted to know if there is any way to atleast send some welcome mail to user, that logs in for the first time, or i'll need to create some custom registration script, with will do send mail to that user???

Or maybe i missed something...

Offline

#17 2006-08-23 17:38:20

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Postfix wiki doc.

Blayder, that is correct. The imap directories are created on first mail reciept.
If I remember correctly (it has been quite a while since I set it up for my old company), I think I created a shell script that automated some of the stuff for me, and at the end, it sent a canned 'welcome' email.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#18 2010-08-28 23:13:03

tc
Member
Registered: 2010-08-28
Posts: 5

Re: Postfix wiki doc.

Hi Cactus,

Thank you for the postfix manual.

A quick question: I can even go passed the "pacman -S postfix" install phase. I get the following:

# pacman -Sy postfix
:: Synchronizing package databases...
core                     35.4K  300.4K/s 00:00:00 [######################] 100%
extra                   454.6K 1272.4K/s 00:00:00 [######################] 100%
community               384.9K 1225.5K/s 00:00:00 [######################] 100%
warning: postfix-2.7.1-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): postfix-2.7.1-1

Total Download Size:    0.00 MB
Total Installed Size:   8.58 MB

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts                         [##############################] 100%
(1/1) upgrading postfix                                   [##############################] 100%
usermod: no changes
newaliases: /lib/libc.so.6: version `GLIBC_2.12' not found (required by /usr/lib/libldap-2.4.so               .2)
error: command failed to execute correctly


---------------------------------------------------------------------------------------------------------------

How can I install/find the missing GLIBC?


Thank you,
TC

Offline

#19 2010-08-28 23:17:42

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Postfix wiki doc.

Try updating your system. You should've started a new thread instead of posting in this 4 years old one.

Offline

#20 2010-08-28 23:20:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Postfix wiki doc.

tc - this thread is four years old: please don't necrobump http://wiki.archlinux.org/index.php/For … Bumping.27

Start a new thread with your issue...

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB