Skip to main content

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
16 views

Using a backslash for an imap_user for mutt to send an email from terminal

I am trying to send an email from a shell script, and I am using mutt with sendmail. The imap_user has a backslash in the user name, and I have not been able to create the variable such that the ...
Samantha Garcia's user avatar
0 votes
1 answer
20 views

How to set absolute postfix Maildir NOT within home directory ? mail_spool_directory does not work

I have installed Postfix from source in the top level directory /srv/mail/. I edit the main.cf file and add: home_mailbox = mail/ When I then send a mail with: sendmail -t localuser@localhost > My ...
user10709800's user avatar
0 votes
0 answers
41 views

How to configure local smtp server sendmail/postfix to occur error 503 5.5.4 send AUTH command first?

I want to achieve sendmail/postfix configuration as in smtp.yandex.ru to make error "503 5.5.4 send AUTH command first" occur after: telnet localhost 25 EHLO test MAIL FROM: user@hostname ...
Duo Duoo's user avatar
0 votes
1 answer
52 views

Strange outgoing messages in syslog, mail.log

I am not using the email config in my ubuntu server, can anyone tell me what is going on?
Christian's user avatar
  • 101
1 vote
1 answer
78 views

How to make the script, configured via sendmail aliases file, run as the user to whom that email is addressed?

I have a FreeBSD box running sendmail 8.16. I have several system users (test robots): robot1, robot2 and robot3 and I would like them to be controlled by emails. First of all they should be able to ...
Igor G's user avatar
  • 133
0 votes
0 answers
68 views

Sendmail message / header rewrite remove "behalf of"

How could I remove this in the email message being sent out through sendmail? Is there something that one can do to revise sendmail.mc? I read this reference already which didn't solve my issue. Name &...
Sendmail Fan's user avatar
0 votes
1 answer
185 views

How to find which clients are using a sendmail SMTP relay?

We have sendmail set up as a SMTP relay on a RHEL 6 machine. How can we find the hostname or IP address of remote clients using this relay to send mail? Is this information logged somewhere? The relay=...
dr_'s user avatar
  • 30.1k
0 votes
0 answers
111 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
317 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
109 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
263 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
179 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
1 answer
296 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
276 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,430
1 vote
1 answer
244 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
2k 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,929
1 vote
1 answer
380 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
92 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
  • 495
1 vote
1 answer
365 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
572 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
132 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
1k 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
1k 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
1k 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,740
0 votes
1 answer
285 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
116 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
1k 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
522 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
174 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
946 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
156 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
951 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,559
0 votes
1 answer
896 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
11k 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
  • 511
0 votes
0 answers
489 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
  • 151
1 vote
1 answer
336 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
463 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
2k 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
93 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
144 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
  • 483
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
1 answer
1k 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
  • 447
0 votes
1 answer
411 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
577 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
5k 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
613 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
1k 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,691
1 vote
2 answers
4k 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
528 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

1
2 3 4 5
7