Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
99 views

Saslauthd service not starting after upgrade to Ubuntu 24.04

I stuck with not starting saslauthd service after upgrade Ubuntu to 24.04 (it runs along with Virutalmin). So i can't authenticate to smtp (cant send mails, but still can recieve) due to error: 454 4....
Tomasz's user avatar
  • 1
0 votes
0 answers
49 views

Postfix with cyrus and saslauthd always accepts

I want to secure a relay with sasl. saslauthd works testsaslauthd -u weberjn -p *** 0: OK "Success." Tried smtpd_relay_restrictions from the SMTPD_ACCESS_README: # Relay control (Postfix 2....
weberjn's user avatar
  • 99
2 votes
1 answer
329 views

SASL authentication failure: Password verification failed even when it works with testsaslauthd

I'm having some trouble configuring client authentication using saslauthd and postfix on ubuntu 22.04. The issue is that users are not getting authenticated although the user exists. It's my first ...
Lukas Guldstøv's user avatar
0 votes
1 answer
214 views

Postfix - SASL Cyrus saslauthd authentication failed

Goal: Configure smtpd to authenticate connections by using postfix, cyrus, saslauthd, pam and mysql. Investigation Authentication via courier-pop3 & courier-imap using mysql works saslauthd ...
Mathew's user avatar
  • 1
0 votes
1 answer
289 views

Postfix / sasldb : "authentication failure"

I'm not a postfix expert... I'm having an authentication problem with posfix 3.5 on debian 11.8. I've added a test user : # saslpasswd2 -c test Password: test Using swaks to test authentication to ...
lc63's user avatar
  • 11
0 votes
0 answers
162 views

postfix secure & insecure connections

I have configured postfix SMTP server for mail sending only with below configurations, I've used cyrus-sasl to authenticate with openLDAP, I want to achieve SMTP port 25 to use insecure connections ...
csx4's user avatar
  • 101
0 votes
2 answers
914 views

Postfix smtpd_sender_restrictions with logical AND

I am using postfix, I need to configure sender based restrictions so nobody that is not authenticated & not part of mynetworks can send mail through this server, this is my smptd sender ...
csx4's user avatar
  • 101
1 vote
1 answer
3k views

testsaslauthd giving "No such file or directory" error

I'm trying to setup a postifix server with virtualmin and while doing so I ran into a SASL error that said "No such file or directory". So I tried testing it with "testsaslauthd -u ...
Jasper's user avatar
  • 11
0 votes
1 answer
1k views

Relay access denied on VPS (error 554 5.7.1)

I'm trying to figure out how to solve a problem on my VPS, maybe you can help me :D Long story short: this is the first time I operate on a Bare Metal VPS, and I'm trying to setup the mail server. ...
PhilFiddler's user avatar
1 vote
1 answer
3k views

Fail2Ban - Posfix-SASL not working

i have a problem that my fail2ban will not ban sasl authentications against my postfix. This is an example log entry from /var/log/syslog: Jul 31 13:42:21 v50428 postfix/smtps/smtpd[635398]: warning: ...
nils50122's user avatar
1 vote
0 answers
64 views

Tell saslauthd to reject authentication attempts for all domains other than ours

We are running Postfix and require authentication for the sending of mail through SMTP. The authentication uses Cyrus' saslauthd which does a Kerberos authentication against our Kerberos domain. Is ...
user35042's user avatar
  • 2,721
1 vote
1 answer
674 views

Postfix: how to use SASL authentication?

Hi I am trying to use a very simple sasl authentication. I have been testing the method here but still encounter error. my server is a fresh install server. And the command I run: # saslpasswd2 -c -u ...
sloweriang's user avatar
0 votes
0 answers
583 views

Cyrus-sasl config in Postfix in FreeBSD without dovecot

Good Afternoon, I have installed a Freebsd 12.1 with postfix and when trying to start see this in /var/log/maillog warning: SASL: Connect to /usr/local/lib/sasl2/smtpd.conf failed: No such file or ...
Eddy's user avatar
  • 7
0 votes
0 answers
522 views

postfix+saslauthd+pam_mysql adds EOL to passwords, thus breaks

I'm trying to use the pam_mysql module in conjunction with postfix and saslauthd. Everything appears to be working, except the actual password comparison is failing. Note: the case being tested is ...
user1633667's user avatar
1 vote
1 answer
2k views

Can't telnet to Postfix SMTP server after adding smtpd_sasl_auth_enable option

I have the Postfix SMTP server installed on my CentOS 7 machine on port 25. To test that it's working, I connect to it using telnet, like this: # telnet localhost 25 and the result is: Trying ::1....
GetFree's user avatar
  • 1,552
5 votes
1 answer
6k views

Log username in maillogs when there is SASL authentication failure

I have a server with postfix and cyrus-sasl. When ever there is an authentication failure it reports in maillog below line. postfix/smtpd[27669]: warning: unknown[185.xxx.xxx.xxx]: SASL LOGIN ...
Kladizkov's user avatar
2 votes
1 answer
3k views

What is wrong with my SASL?

So the story goes: I have a score of CentOS 6.9 virtual machines, migrated to Microsoft's Azure cloud by VHD upload. Once deployed I found out that Azure doesn't allow to send out email directly from ...
djn's user avatar
  • 150
-1 votes
1 answer
971 views

postfix fails to autheticate aginst saslauthd

I have a weird problem trying to autheticate postfix against saslauthd. I am on a standard linux system: Linux smswtc 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64 GNU/Linux postfix ...
Andrew Highlanders's user avatar
0 votes
1 answer
6k views

sasl authentication with postfix

I have a weird problem on postfix trying to authenticate user/pass saslauthd relevant lines in mail.log Feb 14 16:06:21 smswtc postfix/smtpd[3577]: warning: SASL authentication failure: Requested ...
Andrew Highlanders's user avatar
0 votes
1 answer
2k views

Postfix SMTP SASL Authentication with pam_mysql can't accept email addresses as username

I'm currently trying working on a project to update an existing postfix deployment. I'm having issues with authenticating users against smtp. The primary issue I have is that our postfix users ...
Michael Moser's user avatar
2 votes
1 answer
3k views

Postfix+saslauthd: pam_unix(smtp:auth): authentication failure

I'm run postfix 2.10 + Cyrus sasl 2.1 + Dovecot 2.2 on Oracle Linux 7. Dovecot works with saslauthd normally, but Postfix always failed on authentication, wish someone can help to check what problem ...
Yun Wang's user avatar
3 votes
1 answer
931 views

apt-get purge removing seemingly unrelated packages

I somehow managed to remove the /var/run/saslauthd directory while installing authentication for Postfix, so I was trying to apt-get purge and then reinstall the various saslauthd packages in order to ...
Nick Clifford's user avatar
1 vote
1 answer
6k views

Postifx and Dovecot: fatal: no SASL authentication mechanisms

When I sent an test mail from my Gmail to my server, I get this error: fatal: no SASL authentication mechanisms Here is all my configuration files and log files, to help us: /var/log/maillog Nov ...
Tchelo's user avatar
  • 11
1 vote
1 answer
991 views

SMTP-SASL authentification doesn't work

I created another thread previously, where I reported about the problem that I wasn't able to get saslauthd starting up at all: SMTP authentification: saslauthd won't start I now re-installed a ...
c128linux's user avatar
1 vote
1 answer
1k views

Postfix SASL allow SMTP Authentication and relay messages

I am trying to set my SMTP server so it allows only SMTP authenticated users to send emails but the actual sending is done via Mailjet. I am running on Ubuntu 14.04 LTS and Postfix version is ...
Vojtech B's user avatar
  • 111
0 votes
1 answer
2k views

Unable to send email from Command Line in Postfix (warning: TLS library .....)

I configured postfix with ssl/tls. and created an smtp. However I am unable to send test email and/or login. "Text below first defines error log (different attempts) and then configuration files." ...
nix's user avatar
  • 63
1 vote
1 answer
507 views

Postfix multi instance with separate SASLDB for each instance

I configured postfix with multiple instances (postmulti), each instance has your own IP address and it´s working great, but I need each instance uses it´s own sasldb2 file to authenticate users. The ...
Luiz Gustavo's user avatar
0 votes
0 answers
1k views

fail2ban saslauth ban not working

when I run: fail2ban-regex /var/log/mail.warn /etc/fail2ban/filter.d/sasl.conf output: Date template hits: 8158 hit(s): MONTH Day Hour:Minute:Second 0 hit(s): WEEKDAY MONTH Day Hour:Minute:Second ...
exxon's user avatar
  • 83
2 votes
1 answer
2k views

Postfix + SASL using wrong query to authenticate

I recently set up postfix + dovecot on a aws ec2 instance following this guide: http://flurdy.com/docs/postfix/#config-secure-auth Currently I'm stuck with SASL. The SQL query doesn't seem to be ...
maddo7's user avatar
  • 165
2 votes
1 answer
1k views

Properly Configure Postfix to be secure (SASL + TLS)

I've followed online tutorials online to setup my mail server with SASL and TLS, and amavis. It all seems to works - except i can send mails even if i don't authenticate first - which is not good. I ...
537mfb's user avatar
  • 167
1 vote
2 answers
3k views

Postfix config for virtual aliases and sasldb

I'm trying to set-up postfix to handle several domains as aliases, with an SMTP server accepting incoming mails from these domains with sasldb authentication. The documentation looks quite old, and ...
6trouille's user avatar
1 vote
0 answers
573 views

Authnetication failure with postfix and sasl using sasldb

I'm really not sure what my issue is. I've checked several guides, and I am sure I have set this up correctly, including config fails, restarting the service, permissions etc. OS is Ubuntu Server. ...
John Sanders's user avatar
1 vote
1 answer
2k views

Setup Postfix with SMTP-AUTH over SASL2 with SASLDB for users to send emails

Hello, I spent the last few days trying to setup Postfix with SASLDB to send emails from my application over SMTP on Ubuntu Server 15.04. I searched, read and tested a lot about it but I can't get it ...
Tamas Szoke's user avatar
1 vote
1 answer
6k views

Postfix SMTP+saslauthd autentication failure

I try to implement SMTP authentication with postfix and saslauthd on Ubuntu. My IP is W.X.Y.Z, and my VPS IP is W'.X'.Y'.Z'. My user is JohnDoe and my hostname is server. It doesn't work, here are ...
Micky75's user avatar
  • 11
6 votes
4 answers
49k views

"503 5.5.1 Error: authentication not enabled" when trying to connect to my postfix server remotley

I have the following: postfix-2.10.1-6.el7.x86_64 cyrus-sasl-lib-2.1.26-17.el7.x86_64 cyrus-sasl-plain-2.1.26-17.el7.x86_64 cyrus-sasl-2.1.26-17.el7.x86_64 my postconf -n is: alias_database = ...
edotan's user avatar
  • 1,968
3 votes
1 answer
360 views

Ubuntu: Postfix and Cyrus expecting saslauthd PID file in different locations

I'm running postfix and cyrus in parallel on my server, as far as I understand this is a quite common think to do. Both daemons use sasl authorization. However, postfix is looking for the saslauthd ...
Stefan's user avatar
  • 31
2 votes
2 answers
27k views

postfix error: 535 5.7.8 Error: authentication failed: authentication failure

I need to connect to Dyn mail relay and I'm using their KB. I'm trying to connect to my postfix server with telnet to port 25. This is the postconf -n alias_database = hash:/etc/aliases alias_maps =...
edotan's user avatar
  • 1,968
2 votes
2 answers
1k views

Postfix omits realm (@domain) when checking for smtpd pam+mysql authentication

I've trying to configure Postfix so users can send email through SMTP having a username and password. And I'm trying to store credential within a MySQL database. I've taken the path of saslauthd and ...
Mehran's user avatar
  • 519
2 votes
1 answer
945 views

Mail Server Memory buffer error

From time to time, my mail server stops sending any new mails. When this happened, I find the below error log, Jun 22 23:10:18 myserver saslauthd[3967]: DEBUG: auth_pam: pam_authenticate failed: ...
MohammedSimba's user avatar
1 vote
1 answer
1k views

What is a saslpasswd2 domain?

What does saslpasswd2 do, in particular, what is the domain option for: -u domain use domain for user domain (realm). UPDATE: Suppose, I: smtp login to smtp.mydomain.com, as myself@...
user14645's user avatar
  • 1,690
2 votes
0 answers
330 views

How to pass full user name to saslauthd from postfix [duplicate]

I'm trying to configure postfix for SMTP Auth using Cyrus saslauthd and an rimap configuration. I have it working, except for the fact that, due to virtual domains, the auth username for my IMAP ...
Flimzy's user avatar
  • 2,472
2 votes
1 answer
347 views

searching for the correct way to compile postfix

I am experiencing issues while compiling latest version of postfix from source code. At the moment I'm trying to compile version 3 because Debian 7 and latest Ubuntu 14,10 (version 2,9 and 2,11 for ...
blurstream's user avatar
0 votes
1 answer
10k views

535 5.7.8 Error: authentication failed: no mechanism available [duplicate]

I'm using Debian 7, with postfix/courier. When I attempt to login using SMTP I get the following error telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 ...
Sbx's user avatar
  • 79
2 votes
2 answers
3k views

Debugging a Postfix Saslauthd PAM-PGsql authentication failure

I've set up pam-pgsql to lookup passwords in my database for Postfix via Saslauthd. I can test credentials using the command line: $ sudo testsaslauthd -u [email protected] -p password 0: NO "...
jonallard's user avatar
  • 261
1 vote
1 answer
3k views

imapd-ssl: admin: No such file or directory

I am trying to set up my VPS so I can use Thunderbird IMAP to manage my mails. First, I installed postfix and followed this guide to create an SSL certificate. Then I installed sasl2-bin and courier-...
Niklas R's user avatar
  • 123
1 vote
1 answer
2k views

Postfix sasl/tls username password ubuntu14.04 only sender [closed]

Anybody can suggest me a good tutorial to configure postfix as a secure smtp. I've installed it by this command sudo apt-get install mail-stack-delivery but I can't use it. In particular I haven't a ...
Claudio Pomo's user avatar
1 vote
0 answers
2k views

Postfix + Saslauthd + Kerberos 5 + CentOS 7 not working

I've almost got saslauthd checking against Kerberos but seeing some last issues on CentOS 7. When postfix talks to saslauthd, it sends a lowercased domain and it's not corrected. I tried to fix things ...
Brian Topping's user avatar
3 votes
1 answer
16k views

SASL authentication failure: Password verification failed (postfix + cyrus + saslauthd)

We're having difficulties authenticating over smtp, running postfix + cyrus on centos 7. When I try to telnet to port 25 (or 587) locally and auth plain, I get the following errors in the mail log: ...
sdragnev's user avatar
  • 221
9 votes
1 answer
16k views

Postfix on CentOS 7 cannot authenticate against cyrus saslauthd

Postfix fails to authenticate against cyrus saslauthd. However, saslauthd itself is willing to authenticate. What am I missing? From syslog mail facility: Aug 5 14:47:26 centos7-msa-test postfix/...
84104's user avatar
  • 13.1k
7 votes
3 answers
16k views

Postfix: SASL authentication failure: cannot connect to saslauthd server: Permission denied

I had a Postfix/Dovecot server up and running for about a week until I had to reboot it. When I did, things stopped working. I've been up searching for hours to no avail. IMAP successfully ...
flashbang's user avatar
  • 155