Questions tagged [sendmail]

General purpose email routing software that supports mail transport via TCP/IP using SMTP

sendmail is a popular Unix-based email routing facility that makes use of and supports the transfer and delivery of email via the Simple Mail Transfer Protocol (SMTP) and many other ways (e.g. UUCP).

sendmail exists both as free and open source software and as a commercial project, called Sendmail.

1346 questions
144
votes
7 answers

Where to check log of sendmail?

I can't send out emails, need to look into the logs, but where is the log?
Shore
15
votes
3 answers

What is the difference between "dnl" and "dnl #" in a sendmail.mc file?

What is the difference between dnl and dnl # in a /etc/mail/sendmail.mc file? If I want to enable something what needs to be in front? Likewise, if I want to "comment out" something, what prefix do I need? For example: dnl # masquerade not just…
Mike B
  • 12,016
11
votes
6 answers

How to stop Sendmail sending mail from IPv6 instead of IPv4

Today I noticed that Gmail sends all messages received from my server to the Spam folder. I checked message header and found the following: Authentication-Results: mx.google.com; spf=neutral (google.com: 2001:4ba0:cafe:........ is neither…
tfe
  • 127
10
votes
6 answers

How do I configure sendmail to send mail via MX record and not to localhost?

I am trying to get sendmail to transfer mails to the servers specified in the MX records so when the server sends an email to me@domain.com I want it to skip localhost and go straight to gmail. I've gone over the sendmail docs, but don't quite…
Octopus
  • 359
  • 1
  • 3
  • 19
6
votes
1 answer

Why are messages queued and not sent with sendmail?

I am having trouble with one of my sendmail servers. Users are informing me about that registration emails do not arrive. The logfile claims that the message has been queued, but the queue is empty: sudo cat /var/log/mail.log | grep email (with…
merlin
  • 2,172
6
votes
2 answers

process mail in /var/spool/clientmqueue in linux

How do I get sendmail to process mails in /var/spool/clientmqueue? sendmail -q does not work for this directory.
Robert
  • 241
6
votes
2 answers

Sendmail: Setting envelope sender to a fixed value

I need a way to configure sendmail to set the envelope sender of every message to a fixed value (say foo@bar.com). Note that this is not answered by any of the MASQUERADE features/macros (that I know of): I want to also override the envelope user…
5
votes
3 answers

Error when sending mail from command line as non-root user

I'm trying to send mail from the command line as a non-root user on CentOS. I'm using the following command but getting an error: $ echo test | mail -s "test" to@example.com -c cc@example.com WARNING: RunAsUser for MSP ignored, check group ids…
Leo
  • 983
4
votes
1 answer

How to read contents of email in Sendmail

I work for an ISP in Australia. Recently a users account has been comprimised and is sending spam. How can I read the contents of a mail item in the mailq to find the authenticated user which has been comprimised. I know how to do this in Postfix…
Khan McDonald
  • 41
  • 1
  • 1
  • 2
4
votes
3 answers

How can I force sendmail to use SMTP instead of internal relay?

I have a web server that was blacklisted from sending email because it was responding to SMTP HELO with localhost.localdomain instead of the domain name of my server (we'll call it example.com). I was able to get the server to respond to the HELO…
4
votes
1 answer

Modify Sendmail return_path header

I'm hosting a portion of a website for a client, and sending e-mails from their primary domain from a server in my network. Proper SPF records are in place for this, but SPF checking is still failing. SPF seems to be checking the Return-Path:…
noctorum
  • 105
4
votes
3 answers

Can I prevent sendmail from sending emails and instead save them to a file?

I want to test a Newsletter application on a dummy server but I don't want all the clients in my DB (dumped from the live server) to get an email. Is there any way to prevent sendmail from sending those mails really out and instead save them to a…
Omar Kohl
  • 141
  • 4
3
votes
2 answers

Make all users 'trusted' in sendmail

Is there a way to make all system users be 'trusted' by sendmail without having to manually add all the usernames to /etc/mail/trusted-users? Or even better, can I instead of defining 'trusted users', define a 'trusted group' and then add users to…
3
votes
1 answer

Configure sendmail to accept connection from one other IP address

I have a RubyOnRails application running on the same server that runs sendmail. The application sends out (no need to receive) emails via the local sendmail. Now I intend to move sendmail to a dedicated server. How do I make sendmail on that server…
KKK
  • 225
3
votes
2 answers

Sendmail yields "user unkown" errors even after (wrongly) setting up a catch-all account

I was trying to follow the instructions found here to set up a catch-all account, but still I get the following message for mails sent to non-existent users: The error that the other server returned was: 550 550 5.1.1 randomstring@example.net...…
ezequiel-garzon
  • 577
  • 2
  • 8
  • 16
1
2 3 4 5 6 7 8