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

Virtual Users with Postfix fails

Reply to Post Add a New Topic
UserPost

12:53 pm
March 21, 2010


virtualPostfixUser

Guest

Hi there,

i followed your guide from http://www.linuxmail.info/post…..-centos-5/ .

im running 2 debian server:

androktasia: postfix+dovecot

dione: openldap

dovecot works so far – which means i can login via telnet localhost smtp with an ldap user.

even postmap -q bruce.wayne@testenterprise.com ldap:/etc/postfix/ldap-users.cf works with the result:

bruce.wayne/Maildir/

but if i try to test postfix via telnet:

androktasia:~# telnet localhost smtp
Trying 127.0.0.1…
Connected to localhost.
Escape character is '^]'.
220 androktasia.testenterprise.com ESMTP Postfix (Debian/GNU)
mail from: john
250 2.1.0 Ok
rcpt to: bruce.wayne
550 5.1.1 <bruce.wayne>: Recipient address rejected: User unknown in local recipient table
rcpt to: bruce.wayne@testenterprise.com
Connection closed by foreign host.

Mail.log says:
Mar 21 17:40:19 androktasia postfix/smtpd[20309]: connect from localhost[127.0.0.1]
Mar 21 17:40:31 androktasia postfix/smtpd[20309]: 17C3661F5D: client=localhost[127.0.0.1]
Mar 21 17:40:35 androktasia postfix/smtpd[20309]: 17C3661F5D: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <bruce.wayne>: Recipient address rejected: User unknown in local recipient table; from=<john> to=<bruce.wayne> proto=SMTP
Mar 21 17:40:56 androktasia postfix/master[20300]: warning: process /usr/lib/postfix/smtpd pid 20309 killed by signal 6
Mar 21 17:40:56 androktasia postfix/master[20300]: warning: /usr/lib/postfix/smtpd: bad command startup — throttling

Why is this happening? Which is the correct rcpt? just bruce.wayne or the full address?

http://nopaste.info/10c5bcf58a.html main.cf

http://nopaste.info/d861a6a89b.html ldap-users.cf

Thanks for any help!

7:42 pm
March 21, 2010


consultant

Admin

posts 341

Use the full address. Postmap also needs the full address to work.

9:04 pm
March 21, 2010


virtualPostfixUser

Guest

okay, but why does telnet/postfix crash if i enter the full address?

Mar 21 17:40:56 androktasia postfix/master[20300]: warning: process /usr/lib/postfix/smtpd pid 20309 killed by signal 6
Mar 21 17:40:56 androktasia postfix/master[20300]: warning: /usr/lib/postfix/smtpd: bad command startup — throttling

this error is assosiated with the using of the full address

8:37 pm
March 30, 2010


virtualPostfixUse

Guest

hi, its me again..

im still havin these issues with my postfix, mailsending wont work. now even sending mails to 'real' system users  is failing with the same result as posted above.

can som1 please post  his (anomynised) main.cf or give me a hint?

Im not making any progress here for the last 5 days. Postfix just hates me :(

9:12 am
April 1, 2010


consultant

Admin

posts 341

hi,

Please post your master.cf

10:04 am
April 1, 2010


virtualPostfixUser

Guest

hi, here it is:

http://nopaste.info/b8262331f6.html

thanks for any support

12:53 pm
April 1, 2010


virtualPostfixUser

Guest

Hi there,

i figured it out. Now everything works as expected.

I will post the solution later.

But thanks for your effords so far.

2:11 am
April 3, 2010


consultant

Admin

posts 341

Please do, I'm interested to see the cause of the problem in Debian Linux.

11:43 am
April 3, 2010


virtualPostfixUser

Guest

Solution is quite simpel, will be at bottom of this post. I will give a report of my way – if you're not interested you can skip this ;)

After setting postfix into verbose mode in master.cf (-v in line 11) i figured out, that it was an ldap problem.

mail.log said:

Apr  1 16:31:20 androktasia postfix/smtpd[26396]: dict_ldap_lookup: In dict_ldap_lookup
Apr  1 16:31:20 androktasia postfix/smtpd[26396]: dict_ldap_lookup: No existing connection for LDAP source /etc/postfix/ldap-users.cf, reopening
Apr  1 16:31:20 androktasia postfix/smtpd[26396]: dict_ldap_connect: Connecting to server ldap://dione.myhost.de:389
Apr  1 16:31:20 androktasia postfix/smtpd[26396]: dict_ldap_connect: Actual Protocol version used is 3.
Apr  1 16:31:20 androktasia postfix/master[25958]: warning: process /usr/lib/postfix/smtpd pid 26396 killed by signal 6
Apr  1 16:31:20 androktasia postfix/master[25958]: warning: /usr/lib/postfix/smtpd: bad command startup — throttling

then i took a look into the corresponding ldap server-log file (after setting ldap into loglevelmode 256) /var/log/syslog  I figured out, that i was an authentication problem.

So i googled for "postfix ldap" to get to know which tls format postfix wants to have and found this post in the german debianforum (source: http://debianforum.de/forum/vi…..p;start=0)

"Habe das Problem gelöst.

Es lag daran, dass Postfix "dev/[u]random" aus der chroot-Umgebung nicht erreicht hat. Ein einfach aber simpler Workaround ist folgender:

mkdir /var/spool/postfix/dev
cp -a /dev/random /var/spool/postfix/dev
cp -a /dev/urandom /var/spool/postfix/dev

Und schon funzt alles wie es soll. Andere Möglichkeit wäre Postfix aus chroot-umgebung rauszunehmen aber dies ist sicherheitstechnisch bedenklich. ;-)"

Roughly said in english:

"Postfix could not access "/dev/[u]random" from chroot-environment. Simple Workarround:

mkdir /var/spool/postfix/dev
cp -a /dev/random /var/spool/postfix/dev
cp -a /dev/urandom /var/spool/postfix/dev

Now everything works as it should.Other possiiblity would be to take postfix out of the chroot-environment, but this is in the means of security very critical."

That worked for me!

Greetings from Germany and hail to your guide!Cool

6:36 pm
April 3, 2010


consultant

Admin

posts 341

Wow, that's great :-) Thanks for sharing the solution

Reply to Post

Reply to Topic:
Virtual Users with Postfix fails

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:
4 + 4
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
16 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)