Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to sendmail using mailx in linux Post 302695443 by RudiC on Monday 3rd of September 2012 03:11:23 AM
Old 09-03-2012
mail will read stdin, so, slightly adapting bakunin's example,
Code:
mail -s "This is a test" foo@bar.com

will wait for you typing some text up to a closing dot or <ctrl>D. If you want to send an existing text file, follow bakunin's suggestion. For attachments etc, see the man page.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

EXIT STATUS on mailx/sendmail

Hi there I am using mailx command to send mails. I want to send some important files to team members and wud like to know if the team member has recd my email or not. How can I achieve this ? Currently my piece of code is uuencode ${FILE_NAME} ${FILE_NAME} >> mail_msg.txt mailx -s"test... (5 Replies)
Discussion started by: Amruta Pitkar
5 Replies

2. UNIX for Dummies Questions & Answers

Postfix Problem under mailx/sendmail command

Update: Problem solved with this command: /opt/soc/bin/postfix-setup ================================ Hi, I am trying the following mailx command: sadm@edwardwi-z:/etc$ mailx ewijaya@gmail.com Subject: test foo . . EOT But it gives the following error ... (0 Replies)
Discussion started by: monkfan
0 Replies

3. UNIX for Dummies Questions & Answers

get rid of certain tags with mailx or sendmail

Hello, So i want to get rid of "X-Authentication-Warning" when sending out mails with modified returnadress/senderadress ie. when executing "cat test.email | mailx -t -r me@www.tld" (in test.email theres given To, Subject and textmailcontent") - yet it says "UNIXUSER set sender to... (2 Replies)
Discussion started by: congo
2 Replies

4. UNIX for Dummies Questions & Answers

Remove certain headers using mailx or sendmail

Hello, So i want to send mails in any way from a solaris 5.8 system, perhaps using mailx or sendmail. My purpose is to stay clear of systems name in head data. So i want to strip at least the "Message-Id" and the "Recieved" headers of the mail. Yet this seems to be a bit of a problem. Now i... (2 Replies)
Discussion started by: congo
2 Replies

5. UNIX for Dummies Questions & Answers

Sendmail? Mailx? SMTP?

We require e-mails to come from one of our Solaris 10 boxes ASAP and have found that when using such things as Sendmail and Mailx all the mail goes to a Q that only fires every 15 minutes. We have tried everything we could think of to adjust this to force the Q to go every 1 minute but so far no... (3 Replies)
Discussion started by: LRoberts
3 Replies

6. UNIX for Dummies Questions & Answers

Difference between mail,mailx,sendmail

Hello friends I need to know the difference between mail,mailx and sendmail commands. Thanks in advance (1 Reply)
Discussion started by: rocker
1 Replies

7. Solaris

Configure mailx or sendmail

hi, I would like to configure mailx or sendmail to send out some mails to some users. I tried searching online for the configuration but it was kinda confusing. I thought that posting here might get someone to work with me step by step I tried sending out mail but i did not receive in my... (4 Replies)
Discussion started by: cghcgh
4 Replies

8. Solaris

mailx/sendmail configuration/set up problem

Hello Good People of Linux World!!! Background: Recent Networking Graduate, thrown in line of fire. For the past couple of days I have been searching online for answers and haven't gotten anywhere regarding Mailx, Sendmail functionality on SunOS 5.9. My dilemma: Mailx / sendmail are... (28 Replies)
Discussion started by: kazmiM
28 Replies

9. 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

10. Solaris

Mailx , sendmail and mailhost

Hi all, I am trying to grasp the concept between the 3 entity above. I understand that mailx - MUA I also understand that sendmail = MTA 1) If I have a centralized mail server (which might not be sendmail), can I just set mailhost in "/etc/hosts" to point to that mailserver and use... (7 Replies)
Discussion started by: javanoob
7 Replies
COURIERFAX(8)						      Double Precision, Inc.						     COURIERFAX(8)

NAME
courierfax - Send faxes via E-mail SYNOPSIS
sendmail [5558888@fax] sendmail [5558888@fax-lowres] sendmail [5558888@fax-ignore] sendmail [5558888@fax-cover] DESCRIPTION
The courierfax module (if enabled by the system administrator) sends E-mail messages by fax. Addressing an E-mail message to the address 5558888@fax faxes a printed copy of the message to the specified phone number. The ability to send faxes may be restricted, or not available. The E-mail message may be a MIME-formatted message. All attachments are concatenated and sent together in a single fax transmission. courierfax only knows how to handle certain kinds of attached. Obviously, trying to fax a voice .mp3 attaching is not going to work. courierfax knows how to handle plain text, Postscript, and PDF MIME attachments. courierfax might also know what to do with other kinds of attachment, depending on some optional software installed by the system administrator. courierfax may also be able to read GIF, PNG, and JPEG images. Note Color images are converted to black-and-white. Images are faxed with one image per fax page (limiting image sizes to about 1600x2200). The message will be returned as undeliverable if courierfax doesn't know how to handle a MIME attachment. If the first MIME section in the E-mail message is plain text, the text appears on the fax cover page. The sender/recipient information for the cover page is taken from the message's headers. The default courierfax configuration tries to resend the fax for up to eight hours, after which the message is returned as undeliverable. The message will also be returned as undeliverable if the fax transmission is interrupted. The return bounce will state how many pages were successfully transmitted. "@fax" may also be followed by additional keywords that specify extra options: -lowres Send a low-resolution fax. -ignore Ignore any attachment types that courierfax doesn't understand. -cover Send a cover page only. This is useful in limited situations, with something like this in a dot-courier(5)[1] file: ./Maildir ! 5552222@fax-cover This .courier file faxes the contents of a message, sans any attachments, immediately upon receipt in addition to saving the message in the mailbox. FAX TRANSMISSION RECEIPT
The sender will receive a fax transmission receipt if the sender requests an ESMTP delivery status notification. This is the -N option to sendmail(8)[2]: sendmail -Nsuccess 5556666@fax <messagefile When using other mail software, consult the mail software's documentation for instructions on requesting ESMTP delivery status notifications. ADDITIONAL DIALING OPTIONS
courierfax configurations that are generated by the webadmin tool for North American environments usually restrict phone numbers to a standardized ten-digit telephone number, so that the fax address is always <aaabbbcccc@fax>, and courierfax silently performs any needed conversion to dial the number (such as adding "1" or dropping the local areacode). It is also possible to reconfigure courierfax so that it accepts any telephone string and dials it without any preprocessing. If so, the address may contain any combination of digits, letters "A", "B", "C", and "D", representing the four extra dialing tones not normally accessible from most telephone keypads, the symbols "*" and "#", or the following characters: W Most faxmodems pause and wait for a secondary dialtone, before dialing the rest of the number. - The dash is replaced by a comma in the dialing string. A comma results in most faxmodems pausing for two or three seconds before dialing the rest of the number. It is not possible to enter a comma directly, because commas are used to separate multiple E-mail addresses. Use dashes instead of commas in the dialing string. courierfax replaces all dashes with commas before dialing the faxmodem. + Similarly, courierfax replaces all pluses with "@" characters before dialing. An "@" characters results in most faxmodems waiting for the line to be silent for five seconds before dialing the rest of the number. It is not possible to enter a "@" directly as part of the telephone number itself, for the obvious reasons. Use pluses instead of "@"s in the dialing string. courierfax replaces all pluses with "@" before dialing the faxmodem. CONFIGURATION
The slightly arcane configuration file, /etc/courier/faxrc, sets up which dialing strings are valid. The default configuration file contains judicious comments that explain all the parameters, and what they do. The default configuration file disables courierfax by rejecting all telephone numbers. The file must be edited in accordance with the embedded instructions, in order to enable faxing. Using webadmin is highly recommended. Upon demand, webadmin will install a suitable configuration file for the North American numbering plan, that receives all telephone numbers as ten-digit numbers, and adds any required long distance prefix, or removes the local area code, as appropriate. Or, webadmin will install a bare-bones configuration file that dials any requested phone number, without any editing or transformation. BUGS
There is no good way to sleep until a modem lock is released, so we poll every minute. SEE ALSO
courier(8)[3]. AUTHOR
Sam Varshavchik Author NOTES
1. dot-courier(5) [set $man.base.url.for.relative.links]/dot-courier.html 2. sendmail(8) [set $man.base.url.for.relative.links]/sendmail.html 3. courier(8) [set $man.base.url.for.relative.links]/courier.html Courier Mail Server 04/04/2011 COURIERFAX(8)
All times are GMT -4. The time now is 09:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy