1,511 questions
0
votes
0
answers
30
views
How to send email from command line or bash script on macOS [closed]
I've been searching to find a quick way to email from command line or bash script on macOS. I've tried few solutions but none seem to work.
The best one I could find is this solution
How to send an ...
0
votes
0
answers
13
views
Postfix - adding message-id to logs
In postfix log ther are following logs:
Jun 4 06:32:44 zcs723 postfix/cleanup[16293]: <<QUEUE_ID>>: message-id=<value_of_message_id>
Jun 4 06:32:45 zcs723 postfix/lmtp[16311]: <...
-3
votes
0
answers
15
views
Is there a way via script to count the number of message in 60sec interval for postfix mail logs [closed]
Is there a way via script to count the number of message in 60sec interval for postfix mail logs, my goal is to analyze how many emails that the applications are sending in span of 1 minute
0
votes
0
answers
35
views
535 5.7.8 Error: authentication failed: authentication failure on AUTH LOGIN and AUTH PLAIN
I have set up my mail server on a docker container. It works well without any problem with mutt. But I need this to authenticate without mutt.
Using Telnet
attempt 1:
username = thxrxsh, password = ...
0
votes
0
answers
23
views
postsrsd forwarding problems with mail from domain using DMARC
I am using postsrsd to tackle the problems with forwarding email and SPF / DKIM / DMARC issues on my mailserver. However, if i receive mails from domains using DMARC, the forwarded mails are bouncing ...
-1
votes
1
answer
24
views
Remote SMTP Postfix server sends error when sending a outbound mail with bulk recipients
I have a postfix server hosted at 192.168.187.15 and relay is on 192.168.187.17 . I hosted an php codeignitor email sending application with bulk recipients at 192.168.187.16. i connect the postfix ...
-1
votes
0
answers
19
views
Postfix Error: Send-MailMessage : Error in processing.The server response was: 4.3.5 <email_address>: Recipient address rejected: Server config error
Tying to send a test email through a postfix configuration I set up in Ubuntu. I seem to be failing getting the recipients address to be allowed.
Error:
Send-MailMessage : Error in processing. The ...
0
votes
0
answers
29
views
POSTFIX: no sasl connection cant find auth file
I'm using Ubuntu and postfix and dovecot to host a mail server. When i try and run telnet localhost 25 i get an error SASL no authentication methods. I am also using mysql to store usernames and ...
0
votes
0
answers
46
views
How to convert Postfix email log mail to proper html content to show in web view
Below is the Postfix log for a received email. I want to render this content in my application, but I seem unable to do so.
When I use the content with the header: Content-Type: text/plain; charset=&...
0
votes
1
answer
123
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
54
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
89
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
246
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
15
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
42
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
28
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?...
1
vote
0
answers
89
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
29
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
100
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
14
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
161
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
36
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
25
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 ["...
0
votes
0
answers
41
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
307
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
589
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
230
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
31
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
425
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 ...
2
votes
1
answer
855
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
191
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
71
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
752
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, ...
0
votes
1
answer
904
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
159
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
75
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
58
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
375
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
3k
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
158
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
68
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
280
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
988
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
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
546
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
1k
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
406
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/...