Sponsored Content
Full Discussion: Postfix working with Ldap
Special Forums IP Networking Postfix working with Ldap Post 302440738 by beloge2002 on Wednesday 28th of July 2010 06:22:19 AM
Old 07-28-2010
Postfix working with Ldap

Hi everybody,
I am working on mail server(postfix+dovecot+amavisd-new) working with ldap directory. I have an error while attempting to send a mail on my own mail address in the domain:
Code:
Jul 28 12:04:14 HA1UB postfix/smtpd[1482]: warning: dict_ldap_lookup: /etc/postfix/ldap-aliases.cf: Search base 'dc=ub,dc=edu,dc=bi' not found: 32: No such object

I think is that my ldap server is on another server which is not hosting my server mail and the search base isn't interpreted by the ldap server.

Can you please advice what can be the search base.
I am just try to make a mail server based on ldap and I am newbie in this domain.

Thank you in advance.

Eloge
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Postfix 2.3.

When I use the postalias command I am getting an error that says no mapping in /etc/mail/mailer.conf. I am running FreeBsd 6.1 and in my main.cf I have my alias database is alias_maps= hash:/etc/mail/aliases I tried the command two different ways /usr/local/sbin/postalias /etc/mail/aliases... (2 Replies)
Discussion started by: rbizzell
2 Replies

2. Programming

LDAP delete - seems not working

Hi all, I am very new to ldap and am facing the below difficulty. When I try to add something to ldap, I get this: server# /opt/iexpress/openldap/bin/ldapmodify -f almondabc.ldif -h 127.0.0.1 -xv -D cn=Manager,dc=almondabc,dc=com -w secret ldap_initialize( ldap://127.0.0.1 ) add o: ... (0 Replies)
Discussion started by: almond
0 Replies

3. OS X (Apple)

Postfix in Mac OS X 10.5 not working

I'm currently working on a project that would need to send email from my list of users. Based on the search I've done, I could send formatted email from my server using Postfix. I setup my mac adding a few lines below: /etc/hostconfig MAILSERVER=-YES- /etc/postfix/main.cf ... (1 Reply)
Discussion started by: airman_ole
1 Replies

4. IP Networking

postfix - reinject mail to postfix from hold queue directory

hi all. Am using smtpd_recipient_restrictions & check_recipient_access in postfix. The hash file looks like this: emailaddress1 HOLD emailaddress2 HOLD The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies

5. Linux

Secondary groups not working with NFS (+LDAP)

I´m using LDAP for groups and NFS for home dirs. My problem is as follows: I only have a few groups, so it's not the problem everyone else had. When I've mounted a disk over NFS, I need to have my primary group in order to read in the groups I'm a member of. Secondary groups is not working. ... (0 Replies)
Discussion started by: velmont
0 Replies

6. UNIX for Dummies Questions & Answers

Please help with Postfix config issue - How to allow remote Exchange server to relay to my postfix

Hi guys One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered. What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Discussion started by: wbdevilliers
0 Replies

7. UNIX for Advanced & Expert Users

something like LDAP Administrator 2011.1 "LDAP-SQL" but for the CLI

Hi I am searching a tool like "LDAP Administrator 2011.1"/ "LDAP-SQL" but for the CLI. Wish to use LDAP-SQL in scripts (non Windows GUI environment) http://ldapadministrator.com/resources/english/2011.1/images/sqlquery_large.png Softerra LDAP Administrator 2011.1 - What's New OS is... (2 Replies)
Discussion started by: slashdotweenie
2 Replies

8. UNIX and Linux Applications

Postfix: Active Directory and postfix alias

I have a mailserver with postfix i want to alias all mail for administrator@domain.fqdn to root@domain.fqdn I have the aliases configured,and i did newliases but doesn't work. How to did this?Postfix is configured for virtual domain on ad server. (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

9. Solaris

Sudo not working on LDAP client machine

Hi, I have configured ldap manually on solaris 10/11 machine with below entries: # ldapclient list |grep sudo NS_LDAP_SERVICE_SEARCH_DESC= sudoers:ou=SUDOers,dc=exm,dc=ple,dc=com # cat /etc/nsswitch.conf |grep -i sudo sudoers: files ldap # But groups available in LDAP server... (8 Replies)
Discussion started by: Sridaran
8 Replies

10. Solaris

LDAP Client not connecting to LDAP server

I have very limited knowledge on LDAP configuration and have been trying fix one issue, but unsuccessful. The server, I am working on, is Solaris-10 zone. sudoers is configured on LDAP (its not on local server). I have access to login directly on server with root, but somehow sudo is not working... (9 Replies)
Discussion started by: solaris_1977
9 Replies
amavisd-milter(8)					    BSD System Manager's Manual 					 amavisd-milter(8)

NAME
amavisd-milter -- sendmail milter for amavisd-new SYNOPSIS
amavisd-milter [-fhv] [-d debug-level] [-D delivery-care-of] [-m max-conns] [-M max-wait] [-p pidfile] [-P] [-q backlog] [-s socket] [-t timeout] [-S socket] [-T timeout] [-w directory] DESCRIPTION
The amavisd-milter is a sendmail milter (mail filter) for amavisd-new 2.4.3 and above and sendmail 8.13 and above (limited support for 8.12 is provided). Instead of older amavis-milter helper program, full amavisd-new functionality is available, including adding spam and virus information header fields, modifying Subject, adding address extensions and removing certain recipients from delivery while delivering the same message to the rest. For more information you can visit amavisd-milter website: http://amavisd-milter.sourceforge.net/ and SourceForge project: http://sourceforge.net/projects/amavisd-milter Options The options are as follows: -d debug-level Set the debug level to debug-level. Debugging traces become more verbose as the debug level increases. Maximum is 9. -D delivery-care-of Set AM.PDP request attribute delivery_care_of to client (default) or server. When client method is used then amavisd-milter is responsible to forward the message to recipients. This method doesn't allow personalized header or body modification. When server method is used then amavisd-new is responsible to forward the message to recipients and can provide personalized header and body modification. $forward_method in amavisd.conf must point to some place willing to accept mail without further checking in amavisd-new. -f Run amavisd-milter in the foreground (i.e. do not daemonize). Print debug messages to the terminal. -h Print help page and exit. -m max-conns Maximum concurrent amavisd connections (default 0 - unlimited number of connections). It must agree with the $max_servers entry in amavisd.conf. -M max-wait Maximum wait for connection to amavisd in seconds (default 300 = 5 minutes). It must be less then sending MTA timeout for a response to the final "." that terminates a message on sending MTA. sendmail has default value 1 hour, postfix 10 minutes and qmail 20 min- utes. We suggest to use less than 10 minutes. -p pidfile Use this pid file (default /var/run/amavis/amavisd-milter.pid). -P When amavisd-new fails mail will be passed through unchecked. -q backlog Sets the incoming socket backlog used by listen(2). If it is not set or set to zero, the operating system default is used. -s socket Communication socket between sendmail and amavisd-milter (default /var/lib/amavis/amavisd-milter.sock). The protocol spoken over this socket is MILTER (Mail FILTER). It must agree with the INPUT_MAIL_FILTER entry in sendmail.mc The socket should be in "proto:address" format: o {unix|local}:/path/to/file - A named pipe. o inet:port@{hostname|ip-address} - An IPV4 socket. o inet6:port@{hostname|ip-address} - An IPV6 socket. -S socket Communication socket between amavisd-milter and amavisd-new (default /var/lib/amavis/amavisd.sock). The protocol spoken over this socket is AM.PDP (AMavis Policy Delegation Protocol). It must agree with the $unix_socketname entry in amavisd.conf. The socket should be in "proto:address" format: o {unix|local}:/path/to/file - A named pipe. -t timeout sendmail connection timeout in seconds (default 600 = 10 minutes). It must agree with the INPUT_MAIL_FILTER entry in sendmail.mc and must be greater than or equal to the amavisd-new connection timeout. When you use other milters (especially time-consuming), the timeout must be sufficient to process message in all milters. -T timeout amavisd-new connection timeout in seconds (default 600 = 10 minutes). This timeout must be sufficient for message processing in amavisd-new. It's usually a good idea to adjust them to the same value as sendmail connection timeout. -v Report the version number and exit. -w directory Set working directory (default /var/lib/amavis/tmp). Limited support for sendmail 8.12 o smfi_addheader() is used instead of smfi_insheader() for insheader and addheader AM.PDP responses. This works well with amavisd-new 2.4.3 or newer. o smfi_progress() isn't called when amavisd-milter wait for amavisd-new communication socket. o AM.PDP response quarantine isn't implemented. FILES
/var/run/amavis/amavisd-milter.pid The default process-id file. /var/lib/amavis/amavisd-milter.sock The default sendmail communication socket. /var/lib/amavis/amavisd.sock Th default amavisd-new communication socket. /var/lib/amavis/tmp The default working directory. POLICY BANK
When remote client is authenticated, amavisd-milter forward this information to amavisd-new through AM.PDP request attribute policy_bank: SMTP_AUTH Indicate that the remote client is authenticated. SMTP_AUTH_<MECH> Remote client authentication mechanism. SMTP_AUTH_<MECH>_<BITS> The number of bits used for the key of the symmetric cipher when authentication mechanism use it. EXAMPLES
Configuring amavisd-new In amavisd.conf file change protocol and socket settings to: $protocol = "AM.PDP"; # Use AM.PDP protocol $unix_socketname = "$MYHOME/amavisd.sock"; # Listen on Unix socket ### $inet_socket_port = 10024; # Don't listen on TCP port Then (re)start amavisd daemon. Configuring sendmail To the sendmail.mc file add the following entries: define(`confMILTER_MACROS_ENVFROM', confMILTER_MACROS_ENVFROM`, r, b') INPUT_MAIL_FILTER(`amavisd-milter', `S=local:/var/lib/amavis/amavisd-milter.sock, F=T, T=S:10m;R:10m;E:10m') Then rebuild your sendmail.cf file, install it (usually to /etc/mail/sendmail.cf) and (re)start sendmail daemon. Running amavisd-milter This example assume that amavisd-new is running as user amavis. It must agree with the entry $daemon_user in amavisd.conf. First create working directory: mkdir /var/lib/amavis/tmp chmod 750 /var/lib/amavis/tmp chown amavis /var/lib/amavis/tmp Then start amavisd-milter as non-priviledged user amavis: su - amavis -c "amavisd-milter -w /var/lib/amavis/tmp" Limiting maximum concurrent connections to amavisd To limit concurrent connections to 4 and fail after 10 minutes (10*60 secs) of waiting run amavisd-milter with this options: su - amavis -c "amavisd-milter -w /var/lib/amavis/tmp -m 4 -M 600" Troubleshooting For troubleshooting run amavisd-milter on the foreground and set debug level to appropriate level: su - amavis -c "amavisd-milter -w /var/lib/amavis/tmp -f -d level" where debug levels are: 1 Not errors but unexpected states (connection abort etc). 2 Main states in message processing. 3 All amavisd-milter debug messages. 4-9 Milter communication debugging (smfi_setdbg 1-6). SEE ALSO
http://amavisd-milter.sourceforge.net http://www.ijs.si/software/amavisd/ http://www.milter.org/developers http://www.sendmail.org AUTHORS
This manual page was written by Petr Rehor <rx@rx.cz> and is based on Jerzy Sakol <jerzy.sakol@commgraf.pl> initial work. BUGS
A community mailing lists are available at: http://sourceforge.net/mail/?group_id=138169 Enhancements, requests and problem reports are welcome. If you run into problems first check the users mailing list archive before asking questions on the list. It's highly likely somebody has already come across the same problem and it's been solved. BSD
Januar 23, 2006 BSD
All times are GMT -4. The time now is 02:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy