Sponsored Content
Top Forums Shell Programming and Scripting Sendmail Fails to send emails from Linux server. Post 303003286 by drysdalk on Monday 11th of September 2017 05:17:50 PM
Old 09-11-2017
Hi,

Sorry for the delay in replying - glad you've gotten your Sendmail config generating correctly now at least. I'm afraid I can't really help you much further though, sorry. I've got no experience myself in setting up Sendmail to do what you're trying to do, as I've never had to set up a Sendmail box to do quite what you're trying to do.

From some Googling it seems it's certainly possible to get Sendmail to talk to an MSA rather than an MTA and authenticate against it using the authinfo mechanism previously discussed, but as you say you might need to get TLS and other things besides working for this to operate correctly. Perhaps others who have gone down this road and are reading this thread could advise you on how to proceed, if this is really something you absolutely have to do.

On that subject, though: again, is there a reason you have to do this, and pass the mail on to a server that is normally used for talking to mail clients and whatnot ? Why can't you just straight send this mail to its correct destination from your local server, without a relay or smart host or anything else in the way ? Or alternatively, is there not a mail server on site that already is set up to do e-mail correctly that you can just use as your smart relay, saving yourself all this trouble ?
 

10 More Discussions You Might Find Interesting

1. Solaris

how to send mails to users on exchange server from sendmail/solaris(mailx)

Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies

2. Red Hat

Sendmail fails receiving mail since the IP changed on Redhat Server

Hi, Since i move my Linux Redhat server on another Network with new IP address. WE'RE ABLE TO SEND MAIL OUTSIDE BUT we can not receive any incoming mail. It alway points to the old IP. I updated new IP in /etc/hosts and /etc/sysconfig/network then reboot the system. 10.117.32.20 is an old ip... (3 Replies)
Discussion started by: lamoul
3 Replies

3. UNIX for Dummies Questions & Answers

How do I configure Linux server to be able to send emails internally?

Hi The script: #!/bin/sh #set -x # set admin email so that you can get email ADMIN="myemailaddress" # set alert level ALERT=4 df -HP | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do #echo $output usep=$(echo $output | awk '{ print... (5 Replies)
Discussion started by: wbdevilliers
5 Replies

4. Shell Programming and Scripting

Send email from sendmail on AIX using exchange server as SMTP server

i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error... (0 Replies)
Discussion started by: ahmed_salah
0 Replies

5. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies

6. UNIX for Advanced & Expert Users

mailx Vs sendmail to send internal emails to exchange

Hi Gurus, I have been searching for this around, but sendmail seems complicated and not sure if "mail" command would do, since all what I need to send internal emails from my solaris 10 box to our exchange server. Would the mailx or mail command do ? I tried the : # mailx -s test... (2 Replies)
Discussion started by: aladdin
2 Replies

7. Linux

Sendmail takes too long to start and the host is unable to send emails

Hello All, Sendmail takes too long to start and the host is unable to send emails, below are the steps followed, Please let me know if I'm missing anything, is there a debug mode for mailx? # time service sendmail restart Shutting down sm-client: Shutting... (6 Replies)
Discussion started by: lovesaikrishna
6 Replies

8. UNIX for Dummies Questions & Answers

Emails sent from Linux server are rejected by recipient

Hello i have this longterm issue which im unable to solve, i think this is quite simple issue, i hope you may know the cause It is on CentOS Redhat server with qmail installed. # service qmail status # service qmail start Starting Qmail: # ps aux | grep mail qmails 1688 0.0 0.0 ... (1 Reply)
Discussion started by: postcd
1 Replies

9. AIX

Sendmail daemon is inactive, but still i can send emails

Hi, I did setup sendmail on one of AIX LPARs. Its working as expected. But, would like to clarify something with you all. I stopped the sendmail daemon on AIX LPAR, now it is inactive(&commented it on /etc/rc.tcpip ). But still, am able to send the emails even after stopping daemon. ... (6 Replies)
Discussion started by: system.engineer
6 Replies

10. Shell Programming and Scripting

How to configure mutt to send emails on Linux.?

Hello, I am trying to use mutt in order to send emails. I have installed mutt using yum and pasted some details about it later in the post. When I try to run: echo test | mutt -s "Test Email" user@id.com It doesn't do anything. I dont receive any emails. I have the SMTP details for... (1 Reply)
Discussion started by: vaibhavraj
1 Replies
MAILINSPECT(1)															    MAILINSPECT(1)

NAME
mailinspect - sort an mbox by category and pipe emails to a command. SYNOPSIS
mailinspect [-zjiI] -c category FILE [-gG regex]... [-s command] [-p style] [-o scoring] mailinspect -V DESCRIPTION
mailinspect reads the single mbox folder named FILE and sorts it in order of similarity to the category, which must have been created by dbacl(1). It can be used as a command line tool or interactively, when given the -I switch. When used as a command line tool, mailinspect prints the sorted list of emails on STDOUT. Each line consists of a seek position for the given email within FILE, followed by the score and a description string in one of several styles chosen via the -p option. When supplying a command string in conjunction with the -s option, mailinspect spawns a shell and executes command for every email in FILE (possibly selected via the -g or-G options), in the sorted order. This is similar to the formail(1) functionality, except the latter doesn't order the emails. In interactive mode, all the command line functionality is available via keypresses. The sorted list of emails is displayed in a scrollable format, and can be viewed, searched, tagged, resorted and sent to shell commands. Predefined shell commands can be associated with function keys. See the usage section below. The sorting heuristics are currently (and may always be) experimental, so there is no guarantee that the orderings are particularly well suited for anything. EXIT STATUS
mailinspect returns 1 on success, 0 if some error occurred. OPTIONS
-c Use category to compute the scores and sort the emails, which should be the file name of a dbacl(1) category. -g Only emails matching the regular expression regex are sorted. All other emails are ignored. When several -g and -G options are present on the command line, earlier regular expressions are overridden by later ones where applicable. -i Force internationalized mode. -j Force regular expression searches to be case sensitive. -o Determines the scoring formula to be used. The parameter scoring must be an integer greater than or equal to zero. By default, scor- ing equals zero. -p Prints the email index in the given style. The parameter style must be an integer greater than or equal to zero. By default, style equals zero. -s For each email in the list, execute the shell command, with the email body on STDIN. Emails are processed in sorted order. -z Reverse sort order. Normally, emails are sorted in order of closest to furthest relative to category, but in this case, the opposite is true. -I Interactive mode. Instead of printing the sorted list of emails on STDOUT, emails are displayed and can be scrolled, viewed, searched and piped interactively at the terminal. -G Only emails not matching the regular expression regex are sorted. Opposite of -g switch. -V Print the program version number and exit. USAGE
mailinspect needs to read a prelearned category before it can sort the emails in FILE. See dbacl(1). Suppose you have two mail folders named good.mbox and bad.mbox respectively. You can create appropriate categories by typing the commands % dbacl -l good good.mbox -T email % dbacl -l bad bad.mbox -T email Next, you can type the following command to view interactively the bad.mbox file with the emails whose score is closest to the category good listed first: % mailinspect -I -c good bad.mbox Alternatively, you might be interested only in the five emails in the folder bad.mbox whose score marks them as the furthest away from the category bad, completely independently from any other category such as good (ie you want outliers in the scoring sense). % mailinspect -z -c bad bad.mbox | head -5 In interactive mode, the following keys are defined: o toggles another scoring formula. p toggles another display style. q exits mailinspect. s sends the currently highlighted email to a shell command. S sends all currently tagged emails to a shell command, in sorted order. Every email executes the shell command independently. t tags the currently highlighted email. T tags all listed emails. v sends the currently highlighted email to $PAGER for viewing. If the environment variable PAGER is not defined, sends the email to less(1). u untags the highlighted email. U untags all listed emails. z reverses the sort order of displayed emails. / searches for a regular expression (see regex(7)) anywhere within the contents of all listed emails. Hides all emails which don't match. ? like /, but hides all emails which match, keeping all those which don't match. As a convenience, the function keys F1-F10 can each be associated with a shell command string. In this case, typing a function key has the same effect as the S key, but the command is already typed and ready to be edited/accepted. The function key associations are read from the configuration file .mailinspectrc if it exits. FILES
$HOME/.mailinspectrc mailinspect reads the file .mailinspectrc in the $HOME directory, if it exists. This is a plain text file which contains entries of the form # this is a comment F2 cat >> interesting.mbox F5 mail zarniwoop@megadodo.com ENVIRONMENT
DBACL_PATH When this variable is set, its value is prepended to every category filename which doesn't start with a '/'. SOURCE
The source code for the latest version of this program is available at the following locations: http://www.lbreyer.com/gpl.html http://dbacl.sourceforge.net AUTHOR
Laird A. Breyer <laird@lbreyer.com> SEE ALSO
bayesol(1), dbacl(1), less(1), mailcross(1), regex(7) Version 1.12 Bayesian Text Classification Tools MAILINSPECT(1)
All times are GMT -4. The time now is 06:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy