Questions tagged [sendmail]

Sendmail is the traditional MTA (message transfer agent), i.e. the traditional server program to send, transfer and deliver email. If your question is about sending mail in general, see the tag /email.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

Postfix delivers messages locally despite configuration for discovering external agent

A small node operates several web applications attached to a domain. The same domain is used for mailboxes, hosted off site by a commercial service. On the name server operated by the registrar, A, ...
brainchild's user avatar
0 votes
1 answer
50 views

Change mail from header in sendmail

We have two separate RTs (request trackers) configured on one server. They both are configured to send the emails through sendmail. We are trying to configure now SPF and DMARC records for these DNS ...
Julia Mala's user avatar
0 votes
0 answers
43 views

Sendmail entry in /etc/aliases that modifies the email header before sending it out?

I'm using Sendmail I want to create an alias in /etc/aliases, that modifies the To: line before sending out the message . I assume I need some sort of script or command that the email is piped into. ...
user1993015's user avatar
0 votes
1 answer
71 views

Can Sendmail rewrite a specific To: address, so that a different email shows up in the To line?

I have requirement to rewrite a single recipient address. Not just aliasing, because the email To: lines has to be changed. I.e.,. I tried adding this to sendmail.mc: FEATURE(`genericstable')dnl ...
user1993015's user avatar
0 votes
1 answer
49 views

Remove specific emails from sendmail mqueue

How do I remove emails from mqueue based on destination address. Needing to remove deferred messages going to "[email protected]" Due to an endless loop (that has been found and ...
Sarah's user avatar
  • 1
1 vote
0 answers
150 views

SendMail - How to change recipient address's domain

I'm sending e-mails to an e-mail address from our network (let's call it [email protected]) using sendmail. The output message in that machine shows the recipient as "ok" and shows ...
Washington Elvira Filho's user avatar
1 vote
0 answers
163 views

How to prevent sendmail from sending bounce messages to domains in the "To:" headers of received messages?

We are running a Debian Bullseye server that handles the email for our domain. We are using sendmail as MTA. We have disabled relaying and accept email messages only after SMTP authentication. Today, ...
Binarus's user avatar
  • 3,180
0 votes
0 answers
193 views

Trying to use sendmail to a relay that runs on port 25, with no luck (bad dh value)

In my organization, I have a GitLab server that needs to have the ability to send emails. My organization has a mail relay that we must use to send email out to users. I have a RHEL 8 box with GitLab ...
Rankler's user avatar
0 votes
0 answers
310 views

mailx/sendmail does not work with from-addr (Ubuntu 22.04)

I have a pretty simple SSMPT configuration that allows me to send automated messages from my servers via Zoho. I have ssmtp and bsd-mailx installed. Here is my ssmtp.conf: mailhub=smtppro.zoho.com:587 ...
CplClegg's user avatar
1 vote
1 answer
161 views

Sendmail - bounce back message and authentication warning

Our CRM person is now getting Bounce Messages from [email protected] when sending out CRM Letters. It started a few days ago and this could be in line with Microsoft turning off Basic Authentication ...
supmethods's user avatar
1 vote
1 answer
1k views

How can I force PHP to go through my local Postfix SMTP instead of going straight to the destination?

I have a website with forms where users can send us requests. In addition, the site sends a predefined email to the client. The form receives spam (big surprise) and I'm trying to block emails from ...
Alexis Wilke's user avatar
  • 2,707
1 vote
1 answer
241 views

How to use remote postfix relay that uses external smtp

Below is my use case I want to send email via postfix relay that refers another postfix relay server which is using an external SMTP server: [client] --->[Postfix1]---->[Postfix2]----->[...
Samurai's user avatar
  • 55
0 votes
1 answer
67 views

sendmail: does `TLS_Clt` support CIDR-formatted network blocks in /etc/mail/access?

Does sendmail support TLS_Clt access matching based on blocks of IPs? So far the official sendmail TLS documentation I have found does not indicate that it does (nor that it doesn't).
KJ7LNW's user avatar
  • 273
1 vote
1 answer
282 views

Tracking down where email sent is originating

I have a web server running Ubuntu 18.04 with Apache. I have three sites running. Looking in the mail logs, I can see there are many attempts to send email, however I cannot determine the source (e.g. ...
brettstix's user avatar
0 votes
2 answers
2k views

ssmtp in docker image

I'm trying to setup ssmtp (for sendmail) in Docker image. To do so I've created the folowing Dockerfile: FROM php:7.4-apache # Install paquet requirements RUN set -ex; \ # Install required system ...
Athlan's user avatar
  • 141
0 votes
0 answers
387 views

Mail sent to root never arrives

If I send emails with echo "test" | mail -s "Test" myuser echo "test" | mail -s "Test" root /var/log/mail.log contains Apr 7 16:30:30 ScotLX postfix/pickup[...
ottotts's user avatar
  • 13
0 votes
1 answer
107 views

'sendmail' doesn't reliably send notification to be triggered by 'logread' output

I am trying to monitor the logs on my OPENWRT router and send an email when the PPPTD service writes to the log: Mon Nov 29 09:10:31 2021 daemon.info pptpd[5832]: CTRL: Client x.x.x.x control ...
Ron's user avatar
  • 1
0 votes
1 answer
811 views

"mail" command works while in a bash script, but command is not found when using it in the CLI

I have postfix installed in my Linux machine as a send-only mail server and works great when I use the "sendmail" command. Recently I created an executable bash script to run as a daemon and ...
ricardo3889's user avatar
0 votes
0 answers
928 views

sendmail doesn't send mail, with no errors

I have trouble with sendmail 8.15 on Debian 11. It doesn't send mail but /var/log/mail.err is empty /var/log/mail.log Oct 7 09:27:54 debian11 sendmail[2961]: 1977Rg4D002961: from=andrea, size=37, ...
CaneRandagio's user avatar
1 vote
1 answer
669 views

sendmail ignoring SMART_HOST

We have an internal network, which has its own DNS servers for that network. Internet addresses are not resolved on that network, except for some servers which have internet access. One of such ...
nobody's user avatar
  • 1,555
0 votes
1 answer
208 views

Any utility in Linux to add item to the header of an existing email in a particular mailbox?

I am trying to add an extra header item to an existing email in a particular mbox, e.g. X-archived-to-crm: true,user,CRM-ID after it was archived, the CRM-ID is basically the id in the DB of the CRM....
Jobst's user avatar
  • 113
0 votes
0 answers
108 views

DHT22 send email warnings

I'm looking for a script that sends out a warning message from the raspberry pi after reaching the temperature. Have already tried this tutorial, but I keep unfortunately too much error message, ...
chilyourlifefist's user avatar
0 votes
1 answer
404 views

Sending mail using terminal

So i have Linux Mint 20.1 and i'm trying to send mail using command line. Precisely, first off i tried with mail command: mail -s "someSubject" "[email protected]" < fileToSend....
cdummie's user avatar
  • 103
-1 votes
1 answer
341 views

Issue detecting running processes from shell script

Script: #!/bin/bash kafka=`ps -ef | grep 'kafka' | grep -v grep | wc -l` echo $kafka if [ $kafka<3 ] then echo "Hi Support Team, Kafka is down on QA/Dev server $hostname .Please take ...
Kamesh M's user avatar
0 votes
1 answer
148 views

sendmail not delivering all email in 50 messages batches immediately [closed]

I'm programmatically sending email to somewhere between 1 and 50 emails. The program is creating and handing off the emails and many are sent immediately. However, i frequently get some that are ...
Eric's user avatar
  • 13
0 votes
1 answer
778 views

zip mail attachment getting corrupt by sendmail

I'm trying send an email through sendmail with zip file attachment using below function. It's working fine with csv file, but a zip format of same csv is getting corrupted. Thanks in advance. ...
Subhash Gope's user avatar
-2 votes
1 answer
133 views

send mail from php

<?php $to = "[email protected]"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: [email protected]"; ...
user avatar
1 vote
1 answer
735 views

How to configure an email-forwarding system, usable as "MX" record in DNS

Context: let's say I have the domain example.com, but the registrar doesn't provide an "email forward" system. How can I configure postfix (or even a simple Python script would be better, ...
Basj's user avatar
  • 2,351
0 votes
1 answer
439 views

Sendmail sending all emails, but some are not arriving

I have an application that sends out emails to various parties when an exception occurs. Every time I call sendmail to send out the emails, it is programmed to send somewhere between 1 and 12 emails. ...
A. Lewis's user avatar
1 vote
2 answers
6k views

Unable to send out emails from my Linux Host

Unable to send out emails from my Linux Host. Below is the command I try: echo "This is the message body and contains the message" | sudo mailx -v [email protected] -s "This is the ...
Ashar's user avatar
  • 459
0 votes
0 answers
396 views

Send email with variable as subject

I've tried the following code export HOST=`cat /etc/hostname` function send { #$count is defined if [ $count != "0" ]; then #send mail /bin/echo "Hello world"|/usr/bin/...
nicholas's user avatar
  • 131
1 vote
1 answer
256 views

Send cron mail using dockerised postfix

I recently moved postfix into a docker container, with ports 25 and 587 exposed on the host machine. Since doing this, cron on the host machine is now unable to send emails due to No MTA installed, ...
SystemParadox's user avatar
0 votes
1 answer
357 views

Sendmail PAM authentication not working

I have been trying to migrate my mail functionality to a new server. I've copied my alterations to sendmail.mc and rebuilt sendmail.cf. For authentication I use a DB file that is configured in /etc/...
Fr33dan's user avatar
  • 121
2 votes
1 answer
1k views

What is the correct way to enable source downloads in CentOS 8-stream?

So I tried to do this:- yumdownloader --source sendmail But hit this problem:- Last metadata expiration check: 0:08:48 ago on Wed 16 Dec 2020 10:34:00 AM GMT. No package sendmail-8.15.2-34.el8.src ...
cnd's user avatar
  • 209
0 votes
1 answer
70 views

Is my server using SSL encryption to deliver e-mails?

I have deployed a little mail server using sendmail. I think the agent is properly configured to accept delivery requests both with and without encryption. That's because, with the following telnet ...
rudicangiotti's user avatar
0 votes
1 answer
131 views

Can sendmail use mailutils to forward incoming mail?

I am using sendmail and mailutils. I am able to send outgoing mail using mailutils. I am able to receive incoming mail to my domain using sendmail. However when I try to forward emails using the /etc/...
sureshvv's user avatar
  • 463
1 vote
2 answers
1k views

sendmail Authorization failed in cron jobs

When I search for 'cron' using grep in /var/log/syslog I get some lines as follows: Oct 2 11:10:02 hplaptop cron[141532]: sendmail: Authorization failed (534 5.7.9 https://support.google.com/mail/?p=...
adhrar_nmatrous's user avatar
0 votes
0 answers
774 views

sendmail: Using alternative port with smart-host

Sendmail not following smart_host alternative port macro. Using Exchange server, exchange.redacted.com, we are using port 2525 for internal devices and some Linux based machines, allowing them send ...
fcm's user avatar
  • 427
0 votes
1 answer
346 views

Sendmail Service Issue: "rejecting new messages: min free: 100"

For a test email with the following command (echo "Hi") | mailx -v -r [email protected] -s "Subject Test" -c [email protected] [email protected] I get the following output in a ...
pOrinG's user avatar
  • 145
0 votes
1 answer
532 views

Why sendmail sending blank text file?

I want to create a script which able to send the log file by email. The problem now is the text file I have received through email is blank. Which part is the problem? MYSQL_SLOW_LOG_USER="****&...
user432752's user avatar
0 votes
0 answers
3k views

How to send email on linux with HTML content AND attachment?

I have Oracle Linux server 7.8, on which I am trying to explore programs which be used for emailing HTML content and also send an attachment. Let say I am in my home directory and i have the following ...
userx's user avatar
  • 103
0 votes
1 answer
502 views

"Unable to set AuthPassword" ssmtp

I am setting up smtp to sent mails via terminal and getting "non-zero" status. In my log files there is a log about "Unable to set AuthPassword" password contains characters and ...
lukas's user avatar
  • 3
0 votes
1 answer
829 views

Sendmail: Block email going to specific address [Centos]

We've inherited some systems with CentOS that are sending emails to people are no longer working for us. So, since there is no clue which app is sending these emails, I wanted to block them from the ...
Eng7's user avatar
  • 1,681
1 vote
1 answer
3k views

How to check STARTTLS usage when sending emails with sendmail?

I have installed and configured sendmail on my little VPS running Debian in order to send some e-mail notifications when something happens on it. Currently, the setup seems to work fine but, since ...
rudicangiotti's user avatar
0 votes
1 answer
447 views

Is there a way with SendEmail that you have a custom text and under that a command output?

I am trying to use SendEmail. What I want is that I get an e-mail with the output of a ls command but above that output I want a custom text with some explanation. If I try -u it overrides my ls ...
Danny's user avatar
  • 15
0 votes
2 answers
825 views

How do I setup email on FreeBSD? [closed]

I am new to handling things in a low level fashion and I am horrified at the lack of documentation for newbies who have had zero experience setting up MTAs, MDAs, etc. I simply need to connect to my ...
Vishal Subramanyam's user avatar
1 vote
1 answer
295 views

send mail manually by mail command

After installing mailutils on ubuntu 18.04 $sudo apt-get install mailutils I try to send email manually on CLI $mail -s test To: my[email protected] Cc: then.... what should I do????
whitebear's user avatar
  • 165
0 votes
1 answer
4k views

Sendmail with CSV file & plain body text

I am trying to send an email with CSV file as attachment and also print the data available in the text file as Email body using the below shell scripts. But im getting only attachment and there is no ...
user78873's user avatar
1 vote
1 answer
75 views

sendmail v8.15.2 reports 550 User unknown if the underlying Linux userid is not entirely lowercase

I've changed my /etc/hosts file as follows, I added the second line: 127.0.0.1 localhost 127.0.0.1 myservername.mydomain.com myservername I also added myservername.mydomain.com to the /etc/mail/...
Brian B's user avatar
  • 131
1 vote
1 answer
703 views

hostname --fqdn on Azure Ubuntu server has unique domain name ending in .internal.cloudapp.net. How to change to my own domain?

I have added my first Azure server for production use on my domain. Azure assigned a domain name in their DNS, I created a CNAME entry in my domain to forward there. Works great. When I enter the ...
Brian B's user avatar
  • 131

1
2 3 4 5
7