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
1answer
19 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 ...
0
votes
1answer
27 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 ...
1
vote
1answer
40 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 ...
0
votes
1answer
55 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 ...
0
votes
2answers
41 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 ...
0
votes
0answers
42 views

getting error “drop_privileges: setuid(207) failed” while sending test email in unix server

I am trying to send a email from unix box to my personal email using the below command mail -s "TEST_EMAIL" abc@xyz.com on pressing enter and writing the body hi this is a test email. Cc: vuy@abc....
1
vote
1answer
25 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????
0
votes
1answer
168 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 ...
1
vote
1answer
15 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/...
0
votes
1answer
43 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 ...
0
votes
2answers
27 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=<...
0
votes
1answer
64 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 ...
0
votes
1answer
42 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 ...
0
votes
0answers
52 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 ...
0
votes
1answer
43 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" ...
0
votes
0answers
35 views

Using 'Try_TLS:broken.server NO' does not work

sendmail 8.14 configured as "submission-only" on SLES 11 SP3. In submission-only I have: Modified /etc/sysconfig/sendmail and made DAEMON=no Modified /etc/email/submit.cf and pointed D{MTAHost} to ...
1
vote
1answer
111 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 ...
0
votes
1answer
34 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
0
votes
0answers
11 views

www-data sending mail

I'm using an Apache Docker image with symfony4.2 application in my local environment. I configure swiftmailerbundle with sendGrid. When I try to send mail it works. In integration deployment I have ...
0
votes
1answer
85 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 ...
0
votes
0answers
9 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)...
0
votes
0answers
46 views

Problem with sending Unix mail from home (because of Spamhaus block list?) [duplicate]

I have a script that sends a simple email at the end. When running it while my laptop is inside my university'e network, everything works just fine. However, when I send an email from home using a ...
0
votes
0answers
17 views

Tabular email format along with attachment

I have a customer file which is generated at a path. I want to send the data in that file in tabular format along with the file as attachment in the email. I had a sample script from which i took ...
1
vote
2answers
291 views

How to add subject to sendmail function

I have the below line code in ksh: echo -e "$SUBJECT"|/usr/sbin/sendmail -f XXXXXX@gmail.com -t XXXXXX@gmail.com but I'm still getting the $SUBJECT in the body, and not as the real subject. what's ...
0
votes
0answers
27 views

How do I send mail consisting of sqlquery results - but only sending if certain users run?

I'm trying to run a command to send the results of sqlplus query in an email but only if certain users set the command to run - not the dev team. Something like: (emailwhenran) sqlplus username/...
0
votes
2answers
290 views

sendmail - sendmail using relay (Why it doesn't work?)

I am trying to configure configure sendmail to use a relay. I've tried several procedures, but I don't know why it doesn't work since the same relay is used by other services and it works. Below is ...
0
votes
1answer
96 views

Attaching multiple files using bash and emailing it out using SWAKS or another program

I'm trying to: Attach multiple files into one email. Have the email sent out using a Gmail account with the current date and time in the subject header. I'm having trouble with the for a loop ...
0
votes
0answers
16 views

How do I configure SMTP to be able to send from multiple domains on linux using sendmail?

I have many websites hosted on the same server. I would like to use SMTP to send mail from each domain. Right now, it's restricted to only send from the one domain, seemingly the host name. How do I ...
1
vote
0answers
33 views

How to completely disable header from/to/cc modifications aka Masquerade in Sendmail?

I am running sendmail 8.15 on an Ubuntu 18.04 LTS server that is relaying emails from other internal and external mailservers and relays their emails as a smarthost to the internet. Even if some ...
1
vote
1answer
38 views

How to tell sendmail to send out all mail using Mandrill smtp, smtp port, username, api key?

How to tell my CentOS sendmail to send all the mails of my incoming SMTP using following credentials (which is a third party service, who deliver my mails)? Host smtp.mandrillapp.com Port 587 SMTP: ...
1
vote
0answers
80 views

Unknown keyword `smtp-auth' when using --set=smtp-auth=login

I use a bash script to make some process, then send me a mail report. This works fine when I use a local postfix configuration, but this not works with smtp auth and I got the error «smtp-auth unknown»...
0
votes
1answer
706 views

Sending Output of Script By mail

I have a script to Monitor servers in Production , and I want to receive the result of this script execution every 2 hours by mail , how can I do this ? someone has an example ? this is my Script: ...
0
votes
0answers
289 views

Sendmail Bash Shell Script Help

I am new to SysAdmin (in Redhat) and need to correct a non-functioning shell script. The .sh file was originally running on a Solaris Unix system. There is an associated CRON job which launches the ...
1
vote
0answers
89 views

Raspian - emails won't send in postfix

Context: I'm working with my raspberry pie in my local private network. I just want to be able to let cron send me emails, but instead I get this following error from sending my last email. To see ...
0
votes
0answers
424 views

Is there any way to send the html mail in email body and a csv file as an attachment in linux

Please see my below snippet, it is ignoring the attachment, only displaying the HTML content in the email body. I want to attach CSV file with it. Thanks in advance!! awk -F ',' ' BEGIN { ...
1
vote
1answer
3k views

mail: Can't send message: process exited with a non-zero status

Any idea why it is not sending mail for me? Am I missing something? I tried a few articles and it seems like I have done everything correctly; so I am a bit stuck on this? sudo apt-get update sudo ...
0
votes
0answers
17 views

Sendmail Hostname error

We recently changed hostname on our Fedora server to xyz and Sendmail logs report like: July 08 00:06:36 xyz sendmail[20506]: That's fine. But we changed the hostname back to abc but the sendmail ...
0
votes
1answer
142 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 ...
1
vote
0answers
48 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
423 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
2k 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 example sendmail[29544]: x4O6tDOL029544: to=, ctladdr=root@example.com (0/0), ...
1
vote
1answer
58 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
125 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 ...
0
votes
1answer
1k 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 ...
1
vote
0answers
205 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> &...
0
votes
1answer
548 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 ...
1
vote
3answers
735 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
0answers
2k 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 ...
0
votes
1answer
2k 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 ...
1
vote
1answer
214 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 ...

1
2 3 4 5
7