2022 Developer Survey is open! Take survey.

Questions tagged [sendmail]

Sendmail is a free and open-source mail transfer agent (MTA), originally created in the 1980s. It is primarily used on Unix-like operating systems to deliver and transfer mail.

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

Is there a way to disable sendmail bounce notification?

Is there a way to disable bounces in /usr/sbin/sendmail? What i mean by bounces, when you send an email that can't be delivered (for example the To: address is invalid) sendmail will send a bounce ...
user avatar
0 votes
0 answers
53 views

Unable to telnet to 127.0.0.1 (local Linux VM) to test SMTP port 25

I have the latest Kali Linux running on Hyper-V as a VM: Sendmail is installed (testing email server) Domain name purchased, say AlphaMoon.org with MX record pointing to my ISP IP address Netstat ...
user avatar
  • 1
0 votes
1 answer
37 views

Can't send mails as root with Mutt through MSTP

I successfully set up Mutt and SMPT to send to myself some logs through emails. As user, it works perfectly However, when I ask through sudo crontab -e as root to send some logs after running some ...
user avatar
0 votes
0 answers
78 views

sendmail error with Amazon SES relay

I've setup a basic site in AWS (RHEL8.5/Apache) which has a contact form. I have sendmail setup to relay with Amazon SES to send emails. AWS have removed the port 25 restriction for me and my tests to ...
user avatar
0 votes
1 answer
151 views

Sendemail command not found in cygwin

So I am trying to use sendmail in cygwin because on the server I cannot use other options like mutt because they aren't supported. I have downloaded the sendmail package during the cygwin setup, but ...
user avatar
0 votes
0 answers
20 views

Sendmail fails on raspberry pi to log errors from 'at' jobs

I am trying to check the errors produced by 'at' jobs. I installed sendmail, but I see this message in /var/syslog raspberrypi sendmail[961]: My unqualified host name (raspberrypi) unknown; sleeping ...
user avatar
  • 121
0 votes
0 answers
74 views

How to send HTML email from file with sendmail and postfix

I have a file with several lines as shown below. Every 4 lines of the file is one email in queue ready to be sent. I intend to send them with the command: head -4 $file |sendmail -t Each email is ...
user avatar
  • 11
0 votes
0 answers
57 views

Send an HTML file using Sendmail from Linux server

I tried to use this command but it doesn't work from my server. Any suggestion for this case. ( echo "From: ${from}"; echo "To: ${to}"; echo "Subject: ${subject}"; echo &...
user avatar
0 votes
2 answers
264 views

Have sendmail authenticate users against dovecot (or passwd-style files)

I have set up a Debian 10 mail server with sendmail and dovecot+virtual users in preparation of a migration (the old server is also running sendmail + dovecot, but older versions and with "real" users)...
user avatar
  • 123
2 votes
1 answer
462 views

Sending emails using sendmail in freebsd

I am trying to send a test email from command line (for debugging purpose). I cannot make the sendmail to send the email. The Ctrl+d does not work on my ssh console and I could not find a solution by ...
user avatar
  • 1,367
0 votes
1 answer
87 views

sendmail does not recognize the local host name

Recently I'm learning Sendmail in CentOS,But I have got some prombles when I am following the tutorial on youtube. I have followed the steps in the video, but when I try to test the Sendmail with the ...
user avatar
  • 43
1 vote
1 answer
3k views

How to use mail command from within Windows Linux Subsystem?

I'm using Ubuntu 18.04 from within WSL. I installed postfix, sendmail and mailutils. After some headaches I got the mail command to run without errors but I'm not getting the emails I'm sending ...
user avatar
  • 121
0 votes
1 answer
775 views

Can I use sendmail instead of mailx in unattended-upgrades?

I've configured unattended-upgrades for apt to upgrade automatically and setup sendmail with a gmail account I made for it. Now I want unattended-upgrades to use sendmail to send me an email with the ...
user avatar
  • 113
0 votes
0 answers
183 views

Mail is not working on debian server - Outgoing SMTP "Connection timed out"

I have Debian 8 VPS and websites running on PHP 5.6, using Cloudflare DNS servers. I tried to install sendmail and postfix, but sending mails is not working, even through the CLI. I can see syslog I ...
user avatar
  • 147
1 vote
0 answers
131 views

XAMPP sendmail issue

I have the following configuration setup in XAMPP: In php.ini: [mail function] SMTP=smtp.gmail.com smtp_port=587 sendmail_from = *******@gmail.com sendmail_path = "\"D:\xampp\sendmail\sendmail....
user avatar
1 vote
1 answer
2k views

m4:/etc/mail/sendmail.mc:176: cannot open '/usr/share/sendmail-cf/feature/'relay_hosts_only'.m4': No such file or directory

I've looked for an answer to this error all over, and I keep finding only the one people would get if sendmail-cf wasn't installed. Yes the file doesn't exist, but do I try to make it and with what ...
user avatar
1 vote
0 answers
719 views

Could not send email with password reset using SendGrid with Django on PythonAnywhere

Could someone point me in the right direction on how the password reset, that is built-in with Django admin, is going to send an email for the password reset. I am using the following: PythonAnywhere ...
user avatar
  • 11
1 vote
1 answer
43 views

is sendmail aliases sending the email received as a parameter when redirecting to program?

good afternoon, I am learning sendmail and had a doubt about how aliases work. If I have the entry below in my /etc/aliases import@domain.com: "| java -jar importFromEmail.jar import@domain.com" ...
user avatar
  • 173
1 vote
1 answer
155 views

linux - send an email where body is a line of text from a file - date dependent

I would like to add a cron task that sends an email to me@example.com once a day and includes a line of text from a file depending on the date as the message body. My file.txt would look like this: ...
user avatar
  • 13
1 vote
1 answer
764 views

Postfix pipe emails to certain email accounts only

I have configured postfix to run a script when email is received. The script gets tirggered whenever email is received on postfix. However the problem is that it is being triggered on all the email ...
user avatar
  • 111
0 votes
1 answer
3k views

issues setting up sendmail

I need to send emails to different recipients (many), from my gmail account, the same message for each, but different attachments. So I looked into command line mail clients and stumbled upon this ...
user avatar
  • 127
1 vote
0 answers
59 views

sendmail with input file not working

I cannot make sendmail work with an input file. This works fine: echo "Subject: sendmail test" | sendmail -v my@email.com However, if I have file: To: mymail@gmail.com Subject: sendmail test two ...
user avatar
  • 11
0 votes
1 answer
393 views

sendmail in slackware 14.2 unable to recieve mails but able to send

I'm a sys ad newbie and I'm learning slackware this not a production env, slackware comes preinstalled with sendmail and alpine, here's my problem, i've built the sendmail.cf file properly via cd /...
user avatar
0 votes
1 answer
24 views

ending txt contents in csv file by placing values in column format

I would like to get help on sending below txt contents in csv file by placing values in column format DEV-C axpp4-pkrisbtm 04-25-2018-01.15 04-25-2018-01.20 UAT AXKIN-PBBCT4 04-25-2018-22.02 04-25-...
user avatar
1 vote
1 answer
557 views

postfix/sendmail error unknown referring to command line

I have a php script under a wordpress theme sending emails using the mail() function. I have postfix, dovecot & sendmail installed on the server. For a long time the script functioned properly ...
user avatar
  • 203
1 vote
0 answers
726 views

Linux mail server and Outlook configuration

I have a linux box where I am hosting my own internal mail serverusing sendmail. I used to send mails to a abc user in the mail server from my windows outlook using abc@mail keyword in the To field ...
user avatar
  • 119
1 vote
1 answer
677 views

Use of sendmail as input mail gateway with Google G Suite

I'm attempting to use Google G Suite to host some email addresses but not all. I currently have a server hosting my domain and the MX server for this domain. There are no local email account, ...
user avatar
  • 125
1 vote
1 answer
43 views

Does installing Sendmail(using apt install) allow my computer to act as an email server?

I am new to networking and have installed sendmail to allow me to send mail via mutt. I wanted to know if by doing this I have allowed my computer to act as an email server, or if the sendmail ...
user avatar
4 votes
1 answer
2k views

Sending Emails within a Docker Container

Hello I'm trying to run the following command in my container mail -s "This is Subject" someone@example.com < /path/to/file How should my dockerfile look so the above command can be executed ? I ...
user avatar
0 votes
1 answer
1k views

Sending email from LAN PCs to local email server

I'll start with saying: I'm not sure what exactly I need. I googled for "sendmail LAN" and variants, and it seems I need a "null client" setup. So that is my assumption, not my requirement (hence the ...
user avatar
  • 305
0 votes
0 answers
2k views

sendmail dead but subsys locked

An Oracle 6.8 server cannot send mail. The service status is like this: [root@myserver]# service sendmail status sendmail dead but subsys locked sm-client (pid 349376) is running... I ...
user avatar
0 votes
1 answer
434 views

I am not receiving the email when I try to send using Perl (MIME::Lite)

#!/usr/bin/perl use MIME::Lite; my $to = 'mkumar@birdserver.com'; my $from = 'pkumar@birdserver.com'; my $subject = "Eventful"; my $message = " Hi - Test email"; $msg = MIME::Lite->new( ...
user avatar
1 vote
0 answers
236 views

sendmail stops sending emails after sometime

I've a fresh install of CentOS 7 (followed this guide on howtoforge https://www.howtoforge.com/perfect-server-centos-7-apache2-mysql-php-pureftpd-postfix-dovecot-and-ispconfig3 ) and it has sendmail. ...
user avatar
  • 121
1 vote
1 answer
1k views

Edit sendmail /etc/aliases not working

I'm using sendmail to send the server (centos 7) root system mails in a external gmail account, but the amount of mails i get is massive, but only a few are actually needed. In this particular case i ...
user avatar
1 vote
1 answer
173 views

Send all users commands via email when user logs out

In Linux, is there a way to send an email with user session (e.g. commands) when he quits an SSH or console session?
user avatar
1 vote
0 answers
565 views

My mail server seems to be sending out spam and I am trying to find the cause

I have a mail server hosted with amazon aws. I setup the server on Ubuntu 14.04 with postfix & dovecot. I keep getting emails from mail delivery system saying mails are returned to sender that I ...
user avatar
  • 11
0 votes
1 answer
2k views

Configure postfix to deliver mail to particular directory

I want to setup postfix so that any outbound mails to admin@mydomain.com are stored locally in to /apps/mails directory and each mail should have file name in YYYY-mm-dd hh.mm.ss.eml Format. Please ...
user avatar
  • 357
0 votes
1 answer
2k views

Sending mail from outlook to linux machine

I am not sure if this is feasible. But, using sendmail or mutt or mail command, I am able to send mail from linux machine to a outlook server. Whether the vice versa case is possible ? If yes how ? ...
user avatar
  • 649
0 votes
1 answer
5k views

Centos 7 - Sendmail not working

I'm trying to setup sendmail on my centos 7 server, but it's failing for some reason. I've opened port 25/tcp on firewall-cmd and selinux is disabled as well. It's still not working... /var/log/...
user avatar
  • 103
0 votes
0 answers
177 views

Disable Sendmail from rescue mode CentOS 6 Virtual Server

Hello we rent a virtual server of 1and1 CentOS 6 with Parallels Plesk Panel 12 (64-bit) they have put it into rescue mode as it was "found to be part of a network of compromised machines leading a ...
user avatar
0 votes
1 answer
1k views

how can I view the Delivery status notification in sendmail?

I'm using a script to send newsletters via sendmail so, I want to access to Delivery status notification in case the mail failed, is there a command to list the content of DSN?
user avatar
  • 1
1 vote
1 answer
1k views

Re-process emails from `/var/mail/root`

The mail forwarding was broken on one of my servers. Some emails accumulated in the local /var/mail/root mailbox instead of being forwarded. I fixed the forwarding now. Is there a way of reprocessing ...
user avatar
  • 307
0 votes
0 answers
853 views

Migrate emails to new server but prevent Outlook from re-downloading them

I have a sendmail server that is nearing end-of-life. I need to move all email accounts to a new server (postfix), but I don't want Outlook users to re-download all their existing messages after the ...
user avatar
0 votes
1 answer
767 views

sendmail relay refusing to use @outlook.com forward

I use my own sendmail box which has been forward email to a gmail address for a while. Decided to switch to an outlook.com address and configured the sendmail server (via virtusertable table) to ...
user avatar
  • 125
1 vote
0 answers
273 views

Configure Sendmail as Secondary/Anonymous SMTP Solution

I have a scenario where I want to allow my clients a secondary SMTP service, e.g. they are hosted on SERVER1 and using the same server as a primary mail server, Now I want to allow them to use the ...
user avatar
  • 111
1 vote
0 answers
299 views

How to use DNS alias as sender address for sendmail

I have the following setup: My Ubuntu (14.04) server gets a host name from DHCP (real.host.de) and there is a DNS alias (alias.host.de) that points to this host name. Now I want to configure ...
user avatar
  • 111
0 votes
3 answers
2k views

sendmail, ISP blocked port 25 of my incoming mail server

I want to setup a home mail server to receive incoming mails, but my ISP blocked port 25, so other mail clients (e.g., gmail) can't connect to my home mail server, right? I mean, I can telnet from ...
user avatar
  • 7,131
1 vote
1 answer
1k views

Understanding /etc/aliases

I know that /etc/aliases is used to provide mail alias for system users (for either Sendmail or Postfix), for example, the listing like those in Understanding /etc/aliases and what it does. However, ...
user avatar
  • 7,131
0 votes
1 answer
1k views

Prettified way to read mail in linux command line?

I was wondering if there is a command-line way to read the stuff that is in /var/mail/$USER in an attractive way? Thanks in advance.
user avatar
  • 517
2 votes
1 answer
662 views

Debug or disable sendmail auth=SERVER

It seems like people are sending spam through my mailserver using SMTP server authentication. I’m getting bounces of undelivered mail The bounces contain correct Received: headers from my mail server ...
user avatar
  • 123