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
2 answers
41 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 ...
user avatar
  • 131
0 votes
0 answers
31 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[...
user avatar
  • 13
0 votes
1 answer
36 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 ...
user avatar
  • 1
0 votes
1 answer
199 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 ...
user avatar
0 votes
0 answers
31 views

How to attach zip file to eml file to send with sendmail [duplicate]

I am trying to send an email with sendmail that contains a zip folder attached to it. So far I have this code. It successfully sends the email, but I need it to send with an attachment. MHEAD=...
user avatar
0 votes
0 answers
195 views

postfix on centos 7 maildir delivery failed: create maildir file /home/testuser/Maildir/tmp/ : Permission denied

I'm trying to set up postfix on a centos 7 server. I've been following this toturial: https://netcorecloud.com/tutorials/install-centos-postfix/ Everything is looking correct and succesful, however I ...
user avatar
0 votes
0 answers
25 views

How to send a mail with mail x to many users and the don't see the other users in copy

How to send an email to several users without these people seeing the other users in copy. I used the command: mail -a 'Content-Type: text / html' -s "Subject" -r "expeditor@domain.com&...
user avatar
  • 1
0 votes
0 answers
28 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, ...
user avatar
1 vote
1 answer
138 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 ...
user avatar
  • 1,271
0 votes
1 answer
43 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....
user avatar
  • 113
0 votes
0 answers
35 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, ...
user avatar
0 votes
1 answer
82 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" "someMail@gmail.com" < fileToSend....
user avatar
  • 103
0 votes
0 answers
129 views

Configure sendmail to receive mail for request tracker

I'm wanting to start using Request Tracker, and have our email server setup to send comments@mydomain.com to sendmail, which is running on the RT server at rt.mydomain.com I can't seem to get a ...
user avatar
  • 1
0 votes
0 answers
54 views

Debug Postfix Mail Delivery with direct console output, like sendmail -bv

We know about sendmail -bv target@example.com This sends a mail to the currently logged in user, which is problematic if local delivery does not work. Is there such a command which will print the ...
user avatar
  • 326
-1 votes
1 answer
74 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 ...
user avatar
0 votes
0 answers
22 views

SMTP Relay for O365

I have been filtering email for a client for years. Today I learned that they took over the DNS and made their own, and tried to use O365 instead of their internal M$ Exchange server. (Brilliant idea ...
user avatar
0 votes
1 answer
63 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 ...
user avatar
  • 13
0 votes
1 answer
324 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. ...
user avatar
-2 votes
1 answer
30 views

send mail from php

<?php $to = "Istiakshovon011@gmail.com"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: Istiakshovon011@gmail.com"; ...
user avatar
1 vote
1 answer
227 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, ...
user avatar
  • 2,245
0 votes
1 answer
75 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. ...
user avatar
1 vote
2 answers
255 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 mypunnq@gmail.com -s "This is the ...
user avatar
  • 297
0 votes
0 answers
62 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/...
user avatar
0 votes
1 answer
124 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, ...
user avatar
0 votes
1 answer
141 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/...
user avatar
  • 121
1 vote
1 answer
947 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 ...
user avatar
  • 59
0 votes
1 answer
41 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 ...
user avatar
0 votes
1 answer
79 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/...
user avatar
  • 413
1 vote
2 answers
418 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=...
user avatar
0 votes
0 answers
298 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 ...
user avatar
  • 377
0 votes
1 answer
192 views

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

For a test email with the following command (echo "Hi") | mailx -v -r from@something.com -s "Subject Test" -c cc@something.com to@something.com I get the following output in a ...
user avatar
  • 145
0 votes
1 answer
313 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="****&...
user avatar
0 votes
0 answers
928 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 ...
user avatar
  • 103
0 votes
1 answer
193 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 ...
user avatar
  • 3
0 votes
1 answer
390 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 ...
user avatar
  • 1,641
1 vote
1 answer
973 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 ...
user avatar
0 votes
1 answer
206 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 ...
user avatar
  • 15
0 votes
2 answers
542 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 ...
user avatar
1 vote
1 answer
94 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: myname@gmail.com Cc: then.... what should I do????
user avatar
  • 165
0 votes
1 answer
3k 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 ...
user avatar
1 vote
1 answer
26 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/...
user avatar
  • 131
1 vote
1 answer
431 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 ...
user avatar
  • 131
0 votes
2 answers
51 views

I need to fetch the relay=hostname.com from the sendmail logs

I need to fetch the relay=sender.hostname.com from the Sendmail log example below. sendmail[0000]: 03O7cddddddd: from=<user@user.hostname.com>, size=782, class=0, nrcpts=1, msgid=<...
user avatar
0 votes
1 answer
191 views

Is there any IMAP/POP3 rely and archiving server application?

Classic email setup: [REAL-MAIL-SERVER] [IMAP/POP3 >] ---------> [EMAIL-CLIENT] [Storage] Is there any server application (open source) that would permit to store ...
user avatar
  • 12.7k
1 vote
1 answer
859 views

sendmail uses too much cpu

I am running Fedora 31 and time to time I get high CPU for dozen of seconds randomly during the time like every ten minutes or so that is caused by sendmail. So far I am not able find out why. Can ...
user avatar
  • 255
1 vote
0 answers
279 views

msmtp with iCloud account doesn't work

I'm very new to Linux (Raspbian at Raspberry Pi 4 Model B) and I just try to send an e-mail via command line. Right now, this is working with msmtp and a gmx.de account following this guide. apt-get ...
user avatar
  • 115
0 votes
1 answer
771 views

issue with sendmail & html format in body

I need to send mail in unix with 2 attachments and the subject in html format. i did the following, it helps in getting the attachment but not the body content in the mail #!/bin/bash from="b@b.com" ...
user avatar
  • 13
1 vote
1 answer
1k views

Prevent sendmail from doing dns lookups before relaying

My machine (CentOS, sendmail-8.14.7-5.el7) accepts emails from machines and forwards all of them to my smarthost my-smarthost.mydomain.com, which in turn has several dynamic MX-records). Local mail ...
user avatar
0 votes
1 answer
4k views

Mail command in linux

Want to send mail to my email id, but I'm not able to send. I have done sudo apt install mailutils. Here is my code: ssmtp name@gmail.com Hello world Showing error ssmtp :cannot open mail 25
user avatar
0 votes
1 answer
903 views

Is there a way to attach file in sendmail command without using uuencode

I'm trying to send an email from shell script using the below code: fileToAttach=cpu_usage.log `(echo "To: XXXXXX@gmail.com" echo "From: XXXXXX@gmail.com" echo "Subject: Issue with CPU" echo ...
user avatar
  • 203

1
2 3 4 5
7