1,511
questions
0
votes
1
answer
39
views
Postfix TLS library problem: error:14094418 when sending emails from a PHP app using sendgrid-mailer
I have a legacy PHP app running on Apache 2.4.37 on Rocky Linux 8. This uses sendgrid-mailer to post emails. This is configured as follows:
MAILER_DSN=smtp://127.0.0.1:25
I have Postfix running on the ...
0
votes
0
answers
33
views
Postfix doesn't work on clients, due to openssl error
Here is my configuration:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 3.6
debug_peer_list = mail.domain
home_mailbox = ...
0
votes
0
answers
26
views
Postfix smtpd_sender_login_maps, check for LDAP and a manually created list
I have enabled SASL on my Postfix server and have placed an LDAP configuration file for smtpd_sender_login_maps. It currently looks like this:
ldap_sender_login_maps.cf
server_host = AD.SERVER.com
...
0
votes
0
answers
67
views
Unable to Send Emails via Postfix SMTP Server: Connection Timed Out and Relay Access Denied
OS: Debian GNU/Linux 12 (bookworm) aarch64
Postfix mail_version: 3.7.11
Cloudflare DNS Configuration:
Cloudflare DNS Configuration
A Record:
<mydomain.com>. IN A <my ip address>
MX Record:...
0
votes
0
answers
12
views
Which mta should we prefer for sending mails?
We want to be able to send e-mails using SMTP at certain planned time or after certain activities however we do not want to rely on any service such as gmail, amazon, sendgrid. Which MTA would you ...
-2
votes
1
answer
33
views
Postfix responds locally but not remotely - no it is not the firewall
I've got Postfix setup on a new Ubuntu 24.04 server. If I telnet to it locally it responds with the SMTP banner as expected. If I telnet to it from an external source though it opens the port and ...
0
votes
0
answers
14
views
How to configure postfix to allow only specific email ids?
We have a requirement to allow only a specific from email id from a specific IP address using postfix.
Is there a way to do that as I was unable to find any map which would permit only specific emails?...
-2
votes
1
answer
49
views
Is there any way to setup alarm for ubuntu's /var/mail via SSH or else? [closed]
Is there any frameworks / GUI to setup an alarm that triggers whenever mail is sent to /var/mail on ubuntu server?
I'm currently using localhost because of closed network connection, and only way that ...
1
vote
0
answers
71
views
Is it possible to send emails with SMTP Postfix to 587 or 465?
I have several mail servers that are used for mailings via SMTP. I use Postfix+Opendkim+Dovecot. Websites for sending letters connect to SMTP servers on port 587.
I look at the sending logs and ...
0
votes
0
answers
15
views
Custom logs configuration
I have server for mailing using postfix
i want to make configuration which generate logs like this name ECMPLOG how to configure it please help
Jul 2 02:50:01 crmail7 postfix/smtp[5914]: ECMPLOG : ...
-1
votes
1
answer
66
views
Issue with linux postfix /usr/sbin/sendmail: is there a limit on max number of TO addresses? [closed]
I have a distribution list with 101 email address that I use for this command
/usr/sbin/sendmail -bm -v -f'[email protected]' -t < /tmp/mailGm8zV8
/tmp/mailGm8zV8:
MIME-Version: 1.0
From: XXXX....
0
votes
0
answers
13
views
opendkim and memcached not working together
I'm trying to connect opendkim with memcached, but I'm getting the following error:
root@ad66fb76c1d5:~# /usr/sbin/opendkim -x /etc/opendkim.conf -u opendkim -P /var/run/opendkim.pid
opendkim: ...
0
votes
0
answers
117
views
TLS library problem: SSL routines - postfix mail
I want to generate - fullchain-pem, privkey-pem. I have tried this method.
How do I generate fullchain.pem and privkey.pem?
I want to integrate them into my postfix to send mail with my mailserver:
...
0
votes
0
answers
34
views
Suddenly receivers-email ID doesn't receive any Email
I have developed a php application on a Linux server, everything works ok from months,the application work okay and send emails via a button to customers(receivers), Suddenly, I can't send any email ...
0
votes
1
answer
22
views
Vlucas doesn't work
I can't make ENVs to work, the script works fine with plain text.
What did I do wrong in this setup?
This is my script:
<?php
if (isset ($_SERVER ["HTTPS"]) && $_SERVER ["...
-1
votes
1
answer
100
views
Postfix running as a task in ECS not working [closed]
I have a postfix container running in ECS, which I've configured to use port 2525 as I've read port 25 could be blocked.
When I try and establish a connection to it (directly to the tasks private IP ...
0
votes
0
answers
32
views
Ruby Milter why do I have unexpected SMFIR_CHGHEADER filter response after SMFIC_BODY event
I'm learning Ruby, I decided to write a postfix milter script that will modify the From: header for all emails coming to me. Here is an example of the modification: From: "Phishing domain <...
0
votes
1
answer
233
views
SmtpClient fails under .NET Framework but succeeds under .NET Core
We're running a Postfix SMTP server and we have a very simple C# application connecting to it.
System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage();
msg.From = new MailAddress("... ...
-2
votes
1
answer
434
views
Sendmail issues sending to a relay server
Ok, so i've run into somewhat of a roadblock and can't seem to find where i'm going wrong...
I have sendmail on a Ubuntu machine running asterisk... I want sendmail to send email to a relay server I ...
1
vote
2
answers
159
views
inotify file write completion - golang & Postfix
I'm using Postfix on a server to receive emails.
When an email is received I want to trigger some golang code.
I'm using the inotify package, and am monitoring the Maildir/new folder for new incoming ...
0
votes
0
answers
25
views
How to have python create log entries when called by postfix
I have configured postfix with mailbox_command = /path/to/my_python_script.py.
If my python script fails, I see the results of the exception in /var/log/mail.log.
When I try to create a logging.error(...
-1
votes
1
answer
357
views
Trouble with SPF and Return-Path Headers in Postfix Email Setup
I'm facing an issue with sending emails using my Postfix MTA (sender.domain.com) and could use some guidance. My goal is to send emails from [email protected]. However, I'm encountering SPF-related ...
0
votes
2
answers
540
views
openssl smtp AUTH LOGIN fail for one (local) user [closed]
With Gentoo Linux, I have postfix-3.8.2, dovecot-2.3.20-r1, openssl-3.0.11
I got an error when I try to AUTH LOGIN with one user. Works with another.
40E7638A7B7F0000:error:0A00010A:SSL routines:...
1
vote
1
answer
706
views
Troubleshoting migration from swiftmailer to symfony mailer, errors
I upgraded to php 8.2 and from swiftmailer (which is archived) to the new recommended symfony mailer (without using symfony but as standalone)
I was creating swift mailer very simply like this
$...
1
vote
1
answer
154
views
How to use extended ASCII chars in SMTP RCPT TO command
I'm getting the following errors when trying to send an email to a recipient with extended ASCII characters, on my Postfix server, using PowerShell or the System.Web.Mail.SmtpMail .NET class:
The ...
0
votes
1
answer
69
views
Bash script in cron not sending e-mail to provided e-mail address in script
i have small bash script, it is working when executed from command line.
I get e-mail from [email protected] to mailbox [email protected]
#!/bin/bash
while read LINE
do
if curl --insecure -s -...
0
votes
1
answer
645
views
Postfix connect to domain.com[74.208.61.85]:587: Connection refused with dovecot, opendkim and SSL
I am trying to follow a tutorial found here, setting up Postfix and dovecot as well as opendkim with SSL on an Ubuntu 22 server.
I am able to get the server to register that the email is being sent, ...
-1
votes
1
answer
603
views
Forward mail with Postfix and update Reply-To: and rewrite sender
I try to rewrite the sender address with a new domain and also add the original sender address to the Reply-To: header.
Postfix 3.5.18 is active.
The update of the sender domain is working with ...
0
votes
1
answer
836
views
Postfix: Require user authentication when submitting but not when receiving a relay
I'm trying to determine the correct access permissions in Postfix configuration to require user authentication for all direct submissions (i.e. from applications sending an email to a user), but not ...
0
votes
1
answer
3k
views
timed out while receiving the initial server greeting
I'm trying to host a postfix mail server.I have a box with a fixed IP and also a mx record and spf record that link my box IP to my dns record. I can telnet to alt4.gmail-smtp-in.l.google.com 25 but ...
0
votes
1
answer
127
views
Postfix using asterisk user to send emails. Mapping did not work, are there any other options?
I am trying to set up a PBX server to send voicemails to emails, which is being triggered properly, however, the from email is not the correct one I want to use. Instead of using [email protected], ...
0
votes
0
answers
70
views
How i can resend mail by php from php://stdin with replace subjet to alias
I try use php script for get message, get alias and replace subject on that alias, then send.
Postfix configuration
master.cf
etof unix - n n - 10 pipe flags=Rq user=...
0
votes
0
answers
16
views
PHP mail() function can't send to @gmail.com using apache postfix on ubuntu [duplicate]
I want to send an email on my website via the PHP mail() function. I've setup postfix using this tutorial from digitalocean.com, and I can now send emails with the function to every email except those ...
-1
votes
1
answer
55
views
Why does my postfix program in Python not work?
I have this code to calculate something given in postfix notation:
operator = ["+", "-", "*", "/", "^"]
operand=[]
exp=input("Please enter ...
-1
votes
1
answer
343
views
Understanding SPF and mail forwarding
Situation:
i use my own mydomain.de for sending and receiving mails
my mail is [email protected]
mydomain.de is not a relay
i forward received mails via postfix alias to a gmail account
the alias ...
1
vote
1
answer
2k
views
Issue with SMTP connection closing after issuing STARTTLS command
I'm currently working on a project that involves connecting to an SMTP server(locally) using telnet and initiating a TLS connection using the STARTTLS command. However, after successfully establishing ...
1
vote
0
answers
148
views
Rust Lettre command not recognized - starttls
I try to send email from my backend using lettre to my mail server but I get the error
lettre::transport::smtp::Error { kind: Permanent(Code { severity: PermanentNegativeCompletion, category: Syntax, ...
0
votes
0
answers
53
views
LDAP search with some kind of TRUE statement, postfix related
Is it possible to make a filter containing some kind of true statement, i.e.
(&(objectClass=SomeObject)('somestr'='somestr'))
In more details. I want postfix ldap filter that return all mails to ...
0
votes
0
answers
259
views
Postfix: Python Milter not able to change email header
I have some servers that create automated emails which all pass through a Postfix MTA. The software that generates the email does not strictly follow RFCs, and sometimes generates emails with ...
1
vote
1
answer
879
views
DKIM passes even though domains don't match
I'm trying to figure out how DKIM verification works.
My understanding so far has been that the domain inside DKIM-Signature header must match the domain inside From header in case for DKIM check to ...
-1
votes
1
answer
434
views
Postfix+Dovecot How do I BCC an email back to the sender?
The end result I'm trying to achieve is that emails sent out should go into the sent box as well. I've tried multiple ways to do this, inspired by various other answers, but none have worked so far.
I'...
1
vote
0
answers
63
views
Why does calling mail() after opening a file cause sendmail to attempt a write on that file?
Why does calling mail() after opening a file cause sendmail.postfix to attempt a write on that file?
Proof of concept:
<?php
$h = fopen('/var/www/test.txt', 'w');
mail('[email protected]', '...
1
vote
1
answer
2k
views
Postfix header_checks replace multiple occurrences inside References header
In postfix header_checks can be used to replace any header. This works for example perfectly for the Message-Id header.
Example:
/Message-Id:\s+<(.*?)@domain-a.com>/ REPLACE Message-Id: <$1@...
3
votes
0
answers
520
views
Loki LogQL corellate maillogs
please assist me on parsing mail logs using Loki & Grafana :)
My logging server collects maillog files from Linux server, and I want to use Loki to check status (sent, deferred, etc) of messages ...
-2
votes
1
answer
977
views
How To Rewrite Unqualified Address In Postfix So That The Local Domain Is Not Used Automatically
I would like to configure Postfix to rewrite only unqualified recipient email addresses (that is addresses that would go into the To: section of an email), to use the commercial domain name (as in, ....
0
votes
1
answer
393
views
postfix pipe to php script: how to fully log php errors/warning/notices?
In postfix on Debian 10 I’m piping received mail to a php script – in master.cf:
mail-pipe-script unix - n n - - pipe flags=DRhu user=mail-pipe-user argv=/usr/bin/php /var/www/html/...
1
vote
2
answers
2k
views
How to set sender name in mailutils while preserving the sender address
I have set up mailutils in ubuntu 20.04, I can send an email using the command below
echo 'this is a body' | mail -s 'Test Email' -r [email protected] [email protected]
but the first problem with ...
1
vote
0
answers
868
views
Sending simple email via MacOs 12 Terminal with mail (mail_version = 3.2.2)
I would like my MacOS "server" (basic mac mini with OS12.1 installed)
to be able to send emails using my current (paid) email provider.
Some theory first.
I am aware about this fine article ...
-2
votes
1
answer
610
views
Postfix: transport_maps SMTP ignores header_checks [closed]
I have a working SMTP setup in Postfix
transport_maps = hash:/etc/postfix/transport
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
All is good with the SMTP, ...
-1
votes
1
answer
2k
views
postfixadmin update now cant login with admin account
I recently discovered postfixadmin needs to update database and everything so i tried doing that but i couldnt login nor could i create a superuser admin.
these are my logs.
/var/log/nginx/...