Hi Denis,

I found another small bug;

the default pam module is not loaded correctly thus authentication is not working. You create a /etc/pam.d/smtp.opensmtpd file with a correct PAM configuration but OpenSMTPD build with PAM looks for /etc/pam.d/smtpd (default Red Hat installs /etc/pam.d/smtp for Postfix).
Strace proof:

recvmsg(8, {msg_name(0)=NULL, msg_iov(1)=[{".\0\0\0.\0\0\0\0\0\0\0\372\35\0\0\5B\250\234\23\21\317\374\17\3mve\0\3v"..., 65535}], msg_controllen=0, msg_flags=0}, 0) = 46
stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/smtpd", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/pam.d/other", O_RDONLY)      = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=154, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe558784000
read(5, "#%PAM-1.0\nauth     required     "..., 4096) = 154
open("/lib64/security/pam_deny.so", O_RDONLY) = 7

Therefor authentication via PAM fails, when I create a symlink :
ln -s /etc/pam.d/smtp.opensmtpd /etc/pam.d/smtpd it works fine:

Jan 9 16:22:31 mail smtpd[7699]: smtp-in: Accepted authentication for user ******* on session ffffffffb4bd787b

Perhaps you can add that to the new release with the fix for the man page?

Regards,

Michiel

On 01/09/2014 03:41 PM, Denis Fateyev wrote:

On Thu, Jan 9, 2014 at 8:29 PM, Michiel van Es <[email protected]
<mailto:[email protected]>> wrote:

    Ok, I will test the package or make a backup of postfi and start
    anew with OpenSMTPD.
    Are there other maintainers then yourself for keeping this package
    up to date?


I'm the assigned person in Fedora packagers group for this package:
https://admin.fedoraproject.org/pkgdb/acls/name/opensmtpd
So you can send reports directly to me, or in Bugzilla here:
https://bugzilla.redhat.com/show_bug.cgi?id=1021719

I'm keeping this up to date, and even sometimes produce snapshots
(available here: http://www.fateyev.com/RPMS/Fedora19/testing/x86_64/ ).
Feel free to contact me with any packaging-related issues.

---
wbr, Denis.

--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to