Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
3answers
193 views

Understanding sendmail binary

I have a website with some PHP based CMS on which I'm the only user. This website has a simple contact form (name, email, phone and body) by which I get mail from non registered users. One the one ...
0
votes
1answer
1k views

Auth error when sending mail through Postfix with SSMTP

I'm trying to send mail from server A running SSMTP via a server B running Postfix. The Postfix server is running just fine and has been in production for a while without any problems. It runs Postfix ...
0
votes
1answer
19 views

Postfix send e-mail on behalf of G Suite

I have a domain registered on G Suite and I'm building a app that needs to send Transactional email such as password recovery and email verifies. The smtp for gmail has a low quota for that. I need to ...
0
votes
1answer
902 views

configure sendmail for php email()

Recently I installed sendmail in Ubuntu sudo apt install sendmail sudo sendmailconfig When I try to send mail using php email(); function to send email $to = "myemail@gmail.com"; $subject = "Mail ...
1
vote
0answers
33 views

sendmail -v email@email.com returns killed when root

For some reason some of my Solaris 10 systems won't send mail as root. If I try to send a test email as a non root user using sendmail -v I get a nice long list of details ending in success. If I ...
1
vote
1answer
25 views

NOQUEUE: SYSERR(www-data): can not chdir(/var/spool/mqueue-client/): Permission denied

Here's the folder: drwxrws--- 2 smmsp smmsp 4096 May 25 22:47 mqueue-client/ So I did this... usermod -a -G smmsp www-data # groups www-data www-data : www-data smmsp But I still get this error ...
0
votes
2answers
44 views

Sendmail “Message accepted for delivery” but doesn't make it “Deferred: Connection timed out”

I'm trying to get sendmail working. Sending an email to myself, it appears the email is delivered... May 24 06:55:13 texascoders sendmail[29544]: x4O6tDOL029544: to=, ctladdr=root@texascoders.com ...
1
vote
1answer
35 views

Is it possible for sendmail to not use all the output from a bash subshell piped to it?

( GNU bash, version 4.2.50(1)-release (powerpc-ibm-aix6.1.2.0)) ( echo "a" echo "b" echo "c" )| sendmail -F "Sender" recipients@a.com This runs inside a .sh file, and the log (when ran with the -x ...
0
votes
1answer
27 views

Sendmail issue with “localhost.localdomain”

I have a DigitalOcean server which runs Ubuntu 14.04. I am having problems with sending emails from the PHP mail() function (which uses sendmail internally). I think the issue may be related to my ...
0
votes
1answer
30 views

Logging all crontab output using MAILTO

I've been trying to get all cron job outputs to a file (not email). The alias is set in /etc/aliases. logthecron: "|cronlog.sh" And in crontab MAILTO=logthecron. The cronlog.sh file writes to ...
2
votes
1answer
459 views

How to generate a report summary of messages that triggered a specific DSN code

I use Sendmail on CENTOS 5.x, I hope this is a simple question. =) I need to generate a report summary of messages that triggered a specific DSN code. For example: Jan 11 07:43:34 server-example ...
0
votes
2answers
113 views

Sendmail compatibility interface

Postfix (and lots of other stuff) claim they offer sendmail compatible interface. Since I want to write my own sendmail implementation, I was wondering what that actually means. Is there anything RFC-...
3
votes
2answers
4k views

sendmail not using mailertable

I'm having trouble getting my mailertable to work.... /etc/mail/sendmail.mc contains this line FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl /etc/mail/mailertable contains this line ...
0
votes
1answer
4k views

Sending mail with sendmail and attachment

This is how I try to send, email with sendmail command. With html file in body and attached zip file. The mail received is corrupted (without body and with corrupted attachment) . ( echo "From: ...
5
votes
3answers
7k views

piped program in sendmail's /etc/aliases

I'm trying some sort of auto-subscription via a homegrown script. I know it can be achieved by mailing lists such as Mailman but I also want to learn at the same time on how to do it by hand. Here's ...
2
votes
3answers
10k views

Null message body; hope that's ok

I have the following command below as part of a cronjob. When I run the command via cron or at the command line, I get Null message body; hope that's ok. The contents of the email are empty but when ...
2
votes
1answer
2k views

SMTP connectivity issue in Zenoss (“Connection unexpectedly closed”)

I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class 'smtplib.SMTPServerDisconnected'&...
0
votes
0answers
57 views

sending email attachment with sendmail command

email() { sendmail -t <<EOF To: xyz@gmail.com Cc: xyz@gmail.com Subject: This is test email Content-Type: text/html Attachment: file1.html <html><font size="3">Hi Team,<br> &...
1
vote
3answers
451 views

How is sendmail SMTP authentication logging controlled?

I get a ton of failed SMTP login attempts. I'd really like to defend against it, but the logging of those attempts is poor. I'm using sendmail 8.15, cyrus-sasl 2.1.26. The SASL setup is the simplest ...
0
votes
2answers
4k views

how to send a mail with attachment using sendmail command in unix

This is how I try to send, email with sendmail command. echo "Dear user, please find the attached file. Thanks, Support team " | mailx -s "x12 extract for 837 transaction" -a $LogFilePath/file.csv $...
2
votes
1answer
2k views

Sendmail issues “530 Authentication required” error message when authinfo is supplied

sender_email - email address that does not exist, but must be used as FROM address, because receiver host rejects emails from other emails. receiver_email - email that is supposed to receive the sent ...
0
votes
1answer
921 views

Sendmail attach all files in directory

I want to send mail and attach all files in directory. Below doesn't work sendMail -a | find . -name '*.*'
0
votes
1answer
964 views

Saved message in /usr/rp//dead.letter when sending e-mail on CentOS

We just changed a server from RHEL to CentOS. We have some scripts which run some reports and e-mail them. The part that does the e-mailing is below. function email_report { ( echo "Report ...
2
votes
1answer
584 views

Getting sendmail to send mail at a specific time

We have a stock PHP ecommerce application that sends notification emails out whenever a successful purchase is made. We want one of the notifications to be sent 2 weeks after the purchase is made. ...
0
votes
1answer
48 views

Mail in spam - spf is set

I'm trying to send mails from my domain tickety.be. I'm using sendmail to do this. My sender is info@tickety.be. My receiver is also info@tickety.be. My application is hosted on my Scaleway server. ...
1
vote
1answer
1k views

Send an image in the body of the mail using any of the mail utilities in Linux

I am trying to send an email from Linux server, I want to send an image, not as an attachment, that should be displayed in the message body. I tried. mailx -s "TEST mail" <MASKED>@mask.com <...
5
votes
3answers
68k views

sendmail error dsn=5.0.0, stat=Service unavailable

I have configured sendmail in an Ubuntu 12.04 64 bit machine. When I send email through a perl script it gives the below error: dsn=5.0.0, stat=Service unavailable and mail is not being sent. I ...
0
votes
0answers
64 views

Sending mail does not work from my Centos 7 server

In my java application I have a module that allows to send mails application.yml: ... mail: host: smtp.gmail.com port: 587 username: xxxxxx@gmail.com #Replace this field ...
7
votes
2answers
43k views

Sendmail Attachment

I was wondering if it's possible to include an attachment with sendmail. I am generating the following emailfile.eml files with the following layout From: Company Name <example@nowhere.com> To: ...
1
vote
1answer
547 views

Unknown sendmail entries in logfile

I've just received loads of junk mail to a capture all mailbox. I've looked at the server logs and can see below. I'm using sendmail, relaying is disabled but don't understand what they mean. Oct 1 ...
0
votes
1answer
35 views

sendmail default sender

I have a lot of servers, let's say our company network is called Loosers, when using this command echo "Subject: testmail $(hostname)" | sendmail -v 'myemail@mycompany.com' I effectively receive an ...
2
votes
0answers
476 views

Sendmail configuration with user mapping on Solaris

I have the following: host1.intra.net which has sendmail and users: user1, user2 & user3. It is running SunOS 5.10. host2.intra.net which has SMTP server. No authentication, no encryption. Email ...
1
vote
1answer
483 views

Forward Only Email Server

I have a custom domain (I'll use the real domains cause I'm desperate at this point :) ) www.grantorino.io, and I want to forward all email addresses sent to yehiasalam@grantorino.io to yehia.asalam@...
0
votes
1answer
1k views

sending alerts from linux machine through email to MS outlook exchange

I Have a Scenario. I have written a shell script who check the space of mount point '/u06'. if free space is greater then 20% then its OK or if free space is less then 20% then it should generate a ...
0
votes
0answers
5k views

SMTP Issue: did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

We need to create a mail server to send mail for our Portal application using Liferay. The mail account will be an administrative account to maintain the portal. I was able to send mail successfully ...
0
votes
0answers
4k views

Unix “Mail, Mailx and sendmail” command sending blank attachment on IOS

I am using the below listed code, which sends PDF attachment properly. Attachment can be opened in desktop computer and Samsung mobile but same attachment cannot be opened in IPHONE IOS. Below is my ...
0
votes
1answer
992 views

No Sendmail but ISPConfig Postfix

This is what php uses to send php mail with the php mail() function: ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ...
0
votes
0answers
7 views

Milter for Sendmail not sending data over socket - very little documentation, any ideas?

I have configured Milter for sendmail on a virtual machine. I can send an email in my test environment, it is currently accepted by Sendmail and relayed to my exchange server (including when I enable ...
2
votes
1answer
1k views

Sendmail with TLS support changes FROM: address

I have multiple domains on one server and when sending email to server, which supports TLS, server changes FROM field to default domain ($j). What should i do (in .mc level please) to remain primary ...
0
votes
0answers
555 views

Send Mail HTML Table body & Attachment Text file

I am try to send a mail with HTML table by reading data from a text file. The table is getting formatted properly and can be seen in mail body but i also want the same text file to be send in same ...
1
vote
1answer
464 views

Linux Mailx is creating a dead.letter and not sending email [closed]

I am having issues with sending emails from my Redhat6 linux server. Each type of mailing command sendmail/mailx creates a dead.letter in the users home directory. Examples of how I am sending ...
5
votes
1answer
2k views

systemd MAILTO-replacement failing

I'm trying to setup systemd to notify me via email if a unit fails, like Cron can be set up to do. I followed the guide on the Arch Linux wiki. So I set-up a sendmail shell script in /usr/local/bin/...
0
votes
2answers
78 views

Sendmail to filter custom header

we have mail server which relays mails which has only internal domains( lets say @osp.com, @asp.com) to external world via following configuraiton in my mailertable configuration of sendmail . Any ...
1
vote
1answer
60 views

Sendmail migration: Replicating all incoming mails to another mailserver

I am migrating a mailserver running sendmail 8.14.3 to a postfix server. The MDA on the new server is Dovecot. In order to ensure a seamless transition, it would be best if incoming mails are ...
0
votes
2answers
536 views

Sending mail with attachment(image) using sendmail in Linux(ksh)

I am trying to send a mail with below command. I am sending this command from sqr to the command line, which is working fine. $FilePath_mail have To,From and other information along with mail body ...
2
votes
1answer
14k views

Why does sendmail's status keep changing to “dead but subsys locked”?

Every day I get the output of sudo service --status-all emailed to me using crond. The server is a CentOS 6.5 web server which I use to host a few WordPress websites. Occasionally sendmail will change ...
1
vote
0answers
123 views

Sendmail authinfo for multiple users on the same relay?

I'm attempting to set up sendmail to use the mailgun smtp relay for some email invoices our company sends out. However, these are originating from a handful of different domains and when I try to set ...
0
votes
1answer
2k views

Send email if specified files do not exist

I have to do something like : In a folder /x everyday 10Pm and next day 3 AM, 2 files are placed. I have to write a script which will check the folder /x and confirm if the files are there or not ...
2
votes
1answer
2k views

Is there any way to send mail without a relay server? [closed]

I want to send the mail from one server to an external domain (xxx@yyy.com). How can I implement this?
0
votes
2answers
977 views

How to turn off SMTP port in Solaris

I want to turn off SMTP port in Solaris server. I am getting follwing Message. /var/adm/messages:Mar 10 06:18:08 sendmail[20024]: [ID 702911 mail.alert] /var/adm/messages:Mar 11 06:18:08 sendmail[...