Tag Info

Hot answers tagged

6

You've asked a pretty broad question—explaining all of it in detail would take many pages. In brief: There are several programs involved in sending mail on a Linux/Unix machine. There are many to choose from for each role: Mail User Agent (MUA). This is what you read and compose mail with. It's the user interface to the system. Examples: mutt, ...


5

Sendmail and local users with uppercase letters Diagnose Sendmail's default configuration converts local user/mailbox names to all lowercase letters before delivery attempt. In your case email to LocalUser@myhost.net is delivered by sendmail to non existing localuser instead of existing LocalUser. Possible fixes Do not use usernames with uppercase ...


4

If you're running a sendmail with smrsh set up (common in a lot of default configurations) you will need to run the piped command out of /etc/smrsh/. It can either be a symlink or a copy of the script, but if sendmail has 'smrsh' defined, it will need to be run from that directory. For example: subscribe: | /etc/smrsh/parse-subscribe.pl Check the ...


4

Honestly, this sounds like a sendmail.cf problem, as if it's not configured for non-local email, or it's misconfigured. The file /var/log/maillog.3 is almost certainly an "old" log file, and therefore, nothing new will get written to it. You didn't mention what Linux distro, BSD or Unix you're using, but the current log file, the one sendmail currently ...


4

You need mimencode from the metamail package... Debian has some package info, but the package is based on ancient Bellcore code. If you're just trying to send mail though, you might look into using mutt; I think it can mimencode attachments from the commandline.


4

Sendmail: Sending email with custom headers You can generate any header when you send using sendmail. [ Sendmail fills missing important headers ] FILE=/home/myon/executionresults.txt HOSTNAME=`hostname` cat - $FILE <<EMAILCONTENT | /usr/sbin/sendmail -i -- myon@hakugyokuro.gk Subject: Results for $HOSTNAME To: myon@hakugyokuro.gk Results of ...


4

Where does the Cron process look for the default mail binary? Unless otherwise specified I'm fairly sure it just uses the mail program it finds in the path (/bin:/usr/bin). You can though specify the -m command line argument for some versions of cron -m This option allows you to specify a shell command string to use for sending ...


4

Your echo statement should really output newlines not the sequence \ followed by n. You can do that by providing the -e option: echo -e "Subject:Hello \n\n I would like to buy a hamburger\n" | sendmail email@example.com To understand what is the difference have a look at the output from the following two commands: echo "Subject:Hello \n\n I would like to ...


3

There is no default return e-mail address other than the user name combined with domain name. As you invoke the sendmail with sudo, it uses the root user name to make the envelope return address. To change this behavior use the -f switch with sendmail: -fname Sets the name of the ``from'' person (i.e., the envelope sender of the mail). This ...


3

The Solaris echo $ echo -e foo -e foo does not work like most some other echo commands: $ bash $ echo -e foo foo $ which echo /usr/bin/echo $ type -t echo builtin The bash builtin version works as expected, the ksh builtin keeps the Solaris behaviour (echo behaviour is usually system dependent in ksh when options are used). A plain echo should work ...


3

You need to quote the "alias" if it has a space in it: subscribe: "| /home/icasimpan/parse-subscribe.pl" or remove the space: subscribe: |/home/icasimpan/parse-subscribe.pl


3

Sendmail is an MTA (Mail Transport Agent) available for various Unix-like operating systems. It can also serve as an MDA (Mail Delivery Agent). It might be installed by default with your OS or it was a dependency of some sort for other software. Please refer to the documentation that comes with your OS for the Sendmail package for more information on how to ...


3

I believe you don't have the right permissions on /etc. It too cannot be group-writable. Try sudo chmod g-w /etc Does that help?


3

It's referring to this page from the readme, which tells you how to specify your hostname. It's warning you that your hostname won't work outside your local network; sendmail attaches your hostname as the sender of the message, but it's going to be useless on the other end because people outside your local network can't find the machine ixtmixilix. You ...


3

Daemon mode vs. MSP The annotation of the IP address you mentioned above is actually not a configuration of the sendmail server itself. If you look at a modern deployment of sendmail it's typically split into 2 components. The traditional server (daemon mode) and another server running in mail submission program mode (MSP). You can see this with a simple ps ...


3

You're sending email to gmail accounts from this address: Admin@validdomain.com The domain "validdomain.com" you're sending from does not have an SPF record setup for it. You have 1 of 2 options: Change the server's mailer so that its outgoing mail uses a domain that is allowed Set up an SPF record for validdomain.com You can use this tool to see ...


3

Since I could not find an existing, small program, I decided to write my own one. Originally, I came up with: #!/bin/bash # Simple sendmail # filename per spec at http://cr.yp.to/proto/maildir.html rand=$((RANDOM % 1000)) msgname=$(date +%s).P$$R$rand.$(hostname | tr '/:' '\057\072') # Safety measure: do not overwrite existing mail set -o noclobber cat ...


3

It works fine both in my machine and in a Ubuntu server I have in Virtual Box. Now I would like to send one email from one server using the other server as a host. As you mentioned it's working in both machine with localhost not with IP address of host then, might be mail server is running only on localhost, So you need to Bind Postfix Mail Server ...


3

You need to configure exim4 to relay as a smarthost. There are a (lengthy) set of instructions here at the Debian wiki: GmailAndExim4, but it's really easy to get up and running. Your PHP sendmail_path is good to go.


3

No mail server running When I attempt to construct a bogus email on my Fedora 19 system I get the following entry in my system's /var/log/maillog. $ mail blah@localhost Subject: test test . EOT Contents of /var/log/maillog: $ more maillog Jan 2 23:16:45 greeneggs sendmail[21847]: s034Gi1W021847: from=saml, size=209, class=0, nrcpts=1, ...


3

Try the following test command/script #!/bin/sh /usr/sbin/sendmail -i -v -- myemail@mail.com <<END subject: test test END


3

Your permissions issue is not a file permissions issue but SELinux disallowing the sendmail executable from accessing files on the filesystem in a specific location. Your best friend for dealing with these is to use the SELinux troubleshooter GUI. $ sealert -b     You'll then want to follow the advice to add the necessary contexts to your ...


3

Those messages are "bounces". They are usually caused by someone else sending an email to one of your users, and when the email can't be delivered, the mail server will generate a bounce message. You can tell them from regular messages because bounce messages always have the envelope sender <>. In this case, it would appear that the original message ...


3

With most mailers you can do something like this in the /etc/aliases file. joe: joe, someaddress@someotherdomain.com After making changes to this file you typically have to run the command, newaliases. References How to redirect local root mail to an external email address on Linux Forwarding email and must keep a copy


2

The best luck I had was with mime-construct, written in Perl. It does pretty much everything uuencode does, and is pipeable, which is what I needed. (No, I was not looking for an MTA such as mutt... msmtp is all I need, thank you very much.) For people interested, you call it using something like $mime-construct --output --to "addy@domain.suffix" ...


2

Do you need to use exim4? I recommend using postfix. This guide helps you do this with encrypted password http://www.marksanborn.net/linux/send-mail-postfix-through-gmails-smtp-on-a-ubuntu-lts-server/


2

Usually maillog written by syslogd, not by sendmail itself, so you should send SIGHUP to syslogd


2

In bash dsn=5.7.1 $ grep $dsn /var/log/maillog | awk '{print $6}' | awk -F: '{print $1}' returns: p937blksdh3 Of the line you posted, I'm guessing that is the message id? OK, it's not one line. Then grep for that for message details, where are the message details kept?


2

I am not sure, but a quick search turned up this which says (emphasis mine): To be able to send to (or receive from) those MTAs, the ruleset try_tls (srv_features) can be used that work together with the access map. Entries for the access map must be tagged with Try_TLS (Srv_Features) and refer to the hostname or IP address of the connecting ...


2

Whenever sendmail has to deliver mails to other hosts which cannot be reached at that time, the messages are kept in the queue and are marked as “Deferred: Connection timed out”. Although the other hosts could be reached again and you want to tell sendmail to flush the mail queue, the command sendmail -q -v does not really try to reconnect to these hosts and ...



Only top voted, non community-wiki answers of a minimum length are eligible