Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Postfix virtual users and address book

Reply to Post Add a New Topic
UserPost

12:02 am
December 19, 2009


adeel26in

India

Member

posts 7

Post edited 11:17 am – December 19, 2009 by consultant


Hi Consultant.

Thanks for your reply.

I have configured my mail server as per your guide in CentOs. I have configured virtual domains. It's really wonderfull. but i have an bad experience with ldap config and vacation plugin add on.

As after configuring my squirrelmail is not showing any address either not showing any type of error. i didn't understand the meaning of your section. Popluate your directory…

To populate your directory, create a file similar to the one below and import it using ldapadd or better yet, use a GUI tool like JXplorer, a Java based LDAP browser.

dn: ou=People,dc=acme,dc=local
ou: People
objectClass: organizationalUnit

dn: uid=bugsbunny,ou=People,dc=acme,dc=local
uid: bugsbunny
cn: Bugs Bunny
displayName: Bugs Bunny
givenName: Bugs
sn: Bunny
objectClass: inetOrgPerson
userPassword: password
mail: bugsbunny@acme.local

I only want address book via ldap with virtual users no other things. as i also have to do dovecot configuration ??

And vacation i have configured my sql alias file but it's not working as i have already using mysql alias file of virtual users but it's not working. didn't undstand these lines.

If adding the vacation domain conflicts with your existing virtual_alias_maps, use recipient_bcc_maps instead and replace /etc/postfix/mysql-aliases.cf with the lines below.

host = localhost
user = postfix
password = your_password
dbname = postfix
table = vacation
select_field = email
where_field = email
additional_conditions = and active = '1'
result_format = %u@vacation.invalid

after configuring this i always get a bad reciepent mail from user. invalid host or destination. this error.

 The mail system

<1#adilfahim.com@vacation.invalid> (expanded from <1@adilfahim.com>): Host or
    domain name not found. Name service error for name=vacation.invalid type=A:
    Host not found

Kindly tell me where i have mistaken.

Regards

AdilCry

6:22 am
December 19, 2009


consultant

Admin

posts 341

Hi adil,

First, where do you plan to maintain your email user list? In MySQL? In LDAP?

4:33 am
December 20, 2009


adeel26in

India

Member

posts 7

Hi Consultant.

I am new on linux. well i have configured everything as per your guide and also create postfixadmin via sql. & it's working.

This is my first installation.
You tell which is the easy method to maintain users ?? Mysql or Ldap ? & also tell me which is easy to take backup and restore in future if there is any failure.

8:22 am
December 20, 2009


consultant

Admin

posts 341

If you are already using LDAP or Active Directory to maintain your users, then use it so you won't have to maintain two sets of user list. Otherwise use MySQL.

9:03 am
December 20, 2009


adeel26in

India

Member

posts 7

Previously i was not maintaining any user list either in ldap or mysql. This is  purelly a new setup (no old users no mysql aur no ldap)and also confiruged mysql for virtual users as per your guide. i just want to know how to take backup and restore of these mysql users and virtual domains for any future bad situtaion.

regarding ldap i only need ldap address book in my squirrelmail & outlook only. for this if i need to maintain my user list in ldap then i will surely choose this option & maintain my users in ldap.

Can mysql users can't come in ldap address book ???

so i have 2 queries now:

1. for ldap address book need to be maintain users in ldap or mysql users will work ??

2. Backup & restore process of mysql virtual domains & users, which we have created via postfixadmin ??

Pls provide the details.

Thanks

8:09 am
December 21, 2009


consultant

Admin

posts 341

In that case use LDAP.

1. SquirrelMail can use a MySQL addressbook but Outlook can't.

2. For backup and restore, just backup your Postfixadmin mysql database.

8:40 am
December 21, 2009


adeel26in

India

Member

posts 7

Hi,

Thanx for your reply.

1. I have done the same from your guide, virtual users in ldap. but how should i configure my postfix admin to create virtual users there ? is that go automatically in ldap ?? or which part of your guide should i do again. I have reinstall CentOS and planning to start again. Kindly tell me the steps which should i need to accomplish this.

2. There is only backup option in postfixadmin no restore. how can do this ??

3. This postfixadmin can't work with cyrus-imap ?

9:37 am
December 22, 2009


consultant

Admin

posts 341

You are no longer going to use Postfix Admin because it is for MySQL. I suggest you use 389 Directory Server which includes a GUI client for maintaining the user list.

3:00 am
December 23, 2009


adeel26in

India

Member

posts 7

Hello,

Getting error while installing from the above steps.

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID a7b02652
dirsrv-noarch/gpgkey                                     | 1.5 kB     00:00

Public key for 389-admin-console-doc-1.1.4-1.el5.noarch.rpm is not installed

and after that command also not working setup-ds-admin.pl

I have already CentOS 5.4

After this setup should i configure my postfix & dovecot by this 389 ldap server for accessing the ldap address book and also which user i will create in 389 it will automatically logged in my email clients no use to create system users ?

8:04 pm
December 26, 2009


consultant

Admin

posts 341

Hi adil,

Please try it again, the key should be automatically downloaded.l

3:07 pm
March 24, 2010


Tim

Guest

[root@demo ~]# yum install fedora-ds
Loaded plugins: rhnplugin, security
Setting up Install Process
Package fedora-ds is obsoleted by 389-ds, trying to install 389-ds-1.1.3-4.el5.noarch instead
Resolving Dependencies
–> Running transaction check
—> Package 389-ds.noarch 0:1.1.3-4.el5 set to be updated
–> Processing Dependency: 389-ds-console-doc for package: 389-ds
–> Processing Dependency: 389-ds-base for package: 389-ds
–> Processing Dependency: 389-admin-console-doc for package: 389-ds
–> Processing Dependency: 389-admin-console for package: 389-ds
–> Processing Dependency: 389-dsgw for package: 389-ds
–> Processing Dependency: 389-admin for package: 389-ds
–> Processing Dependency: 389-console for package: 389-ds
–> Processing Dependency: idm-console-framework for package: 389-ds
–> Processing Dependency: 389-ds-console for package: 389-ds
–> Running transaction check
—> Package 389-admin.i386 0:1.1.8-4.el5 set to be updated
–> Processing Dependency: perl(Mozilla::LDAP::Utils) for package: 389-admin
–> Processing Dependency: perl(Mozilla::LDAP::Conn) for package: 389-admin
–> Processing Dependency: libadminutil.so.1 for package: 389-admin
–> Processing Dependency: perl-Mozilla-LDAP for package: 389-admin
–> Processing Dependency: mod_nss for package: 389-admin
–> Processing Dependency: perl(Mozilla::LDAP::API) for package: 389-admin
–> Processing Dependency: libadmsslutil.so.1 for package: 389-admin
—> Package 389-admin-console.noarch 0:1.1.4-1.el5 set to be updated
—> Package 389-admin-console-doc.noarch 0:1.1.4-1.el5 set to be updated
—> Package 389-console.noarch 0:1.1.3-3.el5 set to be updated
–> Processing Dependency: java >= 1:1.6.0 for package: 389-console
—> Package 389-ds-base.i386 0:1.2.2-1.el5 set to be updated
–> Processing Dependency: mozldap-tools for package: 389-ds-base
–> Processing Dependency: db4-utils for package: 389-ds-base
–> Processing Dependency: cyrus-sasl-gssapi for package: 389-ds-base
–> Processing Dependency: cyrus-sasl-md5 for package: 389-ds-base
—> Package 389-ds-console.noarch 0:1.2.0-4.el5 set to be updated
—> Package 389-ds-console-doc.noarch 0:1.2.0-4.el5 set to be updated
—> Package 389-dsgw.i386 0:1.1.4-1.el5 set to be updated
—> Package idm-console-framework.noarch 0:1.1.3-1.fc6 set to be updated
–> Processing Dependency: jss >= 4.2 for package: idm-console-framework
–> Processing Dependency: ldapjdk for package: idm-console-framework
–> Running transaction check
—> Package 389-adminutil.i386 0:1.1.8-3.el5 set to be updated
—> Package cyrus-sasl-gssapi.i386 0:2.1.22-5.el5_4.3 set to be updated
—> Package cyrus-sasl-md5.i386 0:2.1.22-5.el5_4.3 set to be updated
—> Package db4-utils.i386 0:4.3.29-10.el5 set to be updated
—> Package java-1.6.0-openjdk.i386 1:1.6.0.0-1.7.b09.el5 set to be updated
—> Package jss.i386 0:4.2.5-1.fc6 set to be updated
—> Package ldapjdk.i386 0:4.18-2jpp.3.el5 set to be updated
—> Package mod_nss.i386 0:1.0.3-8.el5 set to be updated
—> Package mozldap-tools.i386 0:6.0.5-1.el5 set to be updated
—> Package perl-Mozilla-LDAP.i386 0:1.5.2-4.el5 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
 Package                  Arch      Version                    Repository             Size
===========================================================================================
Installing:
 389-ds                   noarch    1.1.3-4.el5                dirsrv-noarch         8.6 k
Installing for dependencies:
 389-admin                i386      1.1.8-4.el5                dirsrv                368 k
 389-admin-console        noarch    1.1.4-1.el5                dirsrv-noarch         201 k
 389-admin-console-doc    noarch    1.1.4-1.el5                dirsrv-noarch          39 k
 389-adminutil            i386      1.1.8-3.el5                dirsrv                 68 k
 389-console              noarch    1.1.3-3.el5                idmcommon-noarch       72 k
 389-ds-base              i386      1.2.2-1.el5                dirsrv                1.7 M
 389-ds-console           noarch    1.2.0-4.el5                dirsrv-noarch         1.4 M
 389-ds-console-doc       noarch    1.2.0-4.el5                dirsrv-noarch          53 k
 389-dsgw                 i386      1.1.4-1.el5                dirsrv                1.1 M
 cyrus-sasl-gssapi        i386      2.1.22-5.el5_4.3           rhel-i386-server-5     29 k
 cyrus-sasl-md5           i386      2.1.22-5.el5_4.3           rhel-i386-server-5     46 k
 db4-utils                i386      4.3.29-10.el5              rhel-i386-server-5    119 k
 idm-console-framework    noarch    1.1.3-1.fc6                idmcommon-noarch      1.0 M
 java-1.6.0-openjdk       i386      1:1.6.0.0-1.7.b09.el5      rhel-i386-server-5     28 M
 jss                      i386      4.2.5-1.fc6                idmcommon             679 k
 ldapjdk                  i386      4.18-2jpp.3.el5            rhel-i386-server-5    783 k
 mod_nss                  i386      1.0.3-8.el5                rhel-i386-server-5     81 k
 mozldap-tools            i386      6.0.5-1.el5                rhel-i386-server-5    139 k
 perl-Mozilla-LDAP        i386      1.5.2-4.el5                rhel-i386-server-5    180 k

Transaction Summary
===========================================================================================
Install     20 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total size: 36 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID a7b02652
dirsrv-noarch/gpgkey                                                | 1.5 kB     00:00     

Public key for 389-admin-console-doc-1.1.4-1.el5.noarch.rpm is not installed

How do I fix this public key?

Thank you,

-Tim

3:20 pm
March 24, 2010


Tim

Guest

Sorry, the problem is resolved.  I was not reading the warning message at the top.

1. install epel-release

http://download.fedora.redhat……lease.html

2. yum install 389-ds

Best,

-Tim

Reply to Post

Reply to Topic:
Postfix virtual users and address book

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
8 + 10
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 326
Posts: 1012

Membership:

There are 928 Members
There have been 84 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 45
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
Raminda – 11

Recent New Members: RaHuL, bikesh, pappy_says, geos, boudi7, dara.hr

Administrators: consultant (341 Posts)