Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Mail command not working for Long Email Address with Dashes Post 302985718 by Corona688 on Monday 14th of November 2016 12:27:21 PM
Old 11-14-2016
Difficult to say without seeing the logs, but I doubt it's the address (unless its legitimately wrong). Lots of things beyond your control happen when you send an email, as well - routing, spam filtering, mailbox sorting, and more. The problem might not even be on your machine but another hop further away.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

mail command not working

hi all I am not able to send mail from unix box to my mail id. do i need to do any settings for that? when i issue this command:- mail -s "letter" <abc.txt the $ pompt goes away and the unix is on wait state. what should I do? (3 Replies)
Discussion started by: infyanurag
3 Replies

2. Shell Programming and Scripting

how to know if the mailx command really sends the mail to the email address?

Hi guys, I have a question about the returning message of the mailx command. if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message? Thanks... (3 Replies)
Discussion started by: sheenshine
3 Replies

3. UNIX for Dummies Questions & Answers

How to verify email address using mailx command ?

Is there any way i can verify the email address (before sending the mail) using the mailx command ? I know that sendmail -bv email@address.com can do it but there is a compatibility issues with the version of Unix we have. So mailx is the only command we can used at this point. Any... (1 Reply)
Discussion started by: rak007
1 Replies

4. UNIX for Dummies Questions & Answers

mail command not working

Hi I am trying to runmail command to send some text to my email id. But its getting hanged up. Not sure what is the problem. Please help. mail -s "testing" abc@somearess.com Thanks (1 Reply)
Discussion started by: infyanurag
1 Replies

5. UNIX for Dummies Questions & Answers

[SOLVED] Command line mail taking too long to send; unable to qualify my own domain name

Hello, I'm having a problem with my mail. When I send mail, it takes a long time for the send to complete. In the below, datestamp is just a simple script to put in a no-white-space date/time stamp. $ datestamp ; mail woodnt; datestamp 02-05-10@193844 Subject: test timer Cc: ... (0 Replies)
Discussion started by: Narnie
0 Replies

6. Shell Programming and Scripting

UNIX Script to query Active Directory: give cn (NT login name) and receive mail (Email address)

Hi folks I need to write UNIX script (with ldapsearch) to query Active Directory. Input is NT login name and output is Email address. Attached a screenshot of Sysinternals "AD Explorer". I need to do the same in CLI. http://i.imgur.com/4s6FB.png I am absolute LDAP/ldapsearch noob. (0 Replies)
Discussion started by: slashdotweenie
0 Replies

7. Red Hat

How to change sender email address in mail -s command

Just having trouble trying to figure out what the option is. When I do mail -s "Subject" someuser@example.com I can't seem to specify "from" or "sender" option as I need it for my task. I tried using --f or -f though it didn't work. Can someone please tell me what other option... (0 Replies)
Discussion started by: rockf1bull
0 Replies

8. Shell Programming and Scripting

Script to Send an email using mail command

Hello all I'm trying to write a script to send an email, so I can be nnotified when something is going wrong with my system. I've tried many options with no luck: mail -s "You've got mail" somebody@example.com echo "Mail Body" | mail -s "Subject" somebody@example.com I tried also to... (1 Reply)
Discussion started by: samer.odeh
1 Replies

9. BSD

mail command is not working

Hi, Mail command is not working. mail -s "hello" abc@google.com < samplefile I am new to BSD.what do i need to do? Please help. Thnaks, Gita. Please use code tags next time for your code and data. (2 Replies)
Discussion started by: gita
2 Replies

10. Shell Programming and Scripting

How to change the sender's name or E-mail address in mutt command

Can any one help me in this ??? How to change sender's name or email address in Mutt command??? (4 Replies)
Discussion started by: sarathi
4 Replies
FILTER(1)						      General Commands Manual							 FILTER(1)

NAME
filter - filter incoming messages before adding to mailbox SYNOPSIS
filter [-q] [-v] [-l] [-o output] [-f rules-file] [-m mailbox] filter [-n] [-f rules-file] filter [-r] [-o output] [-f rules-file] filter [-c] [-s] [-o output] [-f rules-file] filter [-c] [-S] [-o output] [-f rules-file] DESCRIPTION
In brief, filter is designed to sort incoming mail based on user preferences for various recognized headers. It logs a summary of messages filtered to a logfile. See the USAGE section for full details. OPTIONS
The flags the filter program understands are; -c Clear logs. If this flag is used, the log files will be removed after being summarized by either "-s" or "-S" (see below). -f rules-file Get rules from specified file instead of default $HOME/.filter/filter-rules -l Log actions only. Do not log information about mailed messages. -n Not really. Output what would happen if given message from standard input, but don't actually do anything with it. -o file Redirect stdout messages to the specified file or device. Logging of filter actions is not affected. (This is added to more gracefully deal with changes in the file system (since sendmail is quite picky about modes of files being redirected into.)) -m mailbox Override the compiled in definition of your primary 'mailbox'. This is disabled if filter is setgid. -q Quiet. Do not log filtering actions. -r Rules. List the rules currently being used. -s Summarize. List a summary of the message filtering log. -S This is the same as `-s' but includes message-by-message information additionally. -v Verbose. Give output on standard out for each message filtered. May be useful to set output to ``/dev/console'' or other log- ging device. (see -o). USAGE
Filter uses a set of selection rules to process incoming mail messages. These rules are normally read in from $HOME/.filter/filter-rules. As soon as a rule matches something about the message, that rule is used, and no further action is taken. The general format for a rule is; if (expression) then action where expression is: expression ::= { not } condition { and expression } condition ::= field = stringvalue ::= field != stringvalue ::= lines relop numvalue or ::= always These further break down as: field ::= from | subject | alphasubject | to | lines | sender relop ::= = | != | < | > | <= | >= stringvalue ::= any quoted string numvalue ::= any integer value Note: alphasubject is a transformed version of the subject line, where only alpha chars are preserved, and they are forced to lower case. It is then simpler to use a regular expression match across a wide variety of similar subjects. from matches any and all of the following headers: "From " From: Reply-To: Sender: Action can be any of: delete (ignore this message; throw it away) save foldername (put in 'foldername' for later) savecopy foldername (save a copy AND put in my inbox) execute command (pipe message to 'command') executec command (copy to inbox, AND pipe to 'command') forward address (forward this message) forwardc address (forward this message, AND copy to inbox) resend address (resend to new addr without change) leave (just put it in my inbox) bounce (say there's no such user) An example of a rules file would be: # I'll read this stuff later when I feel like it if (from = "list@interest.org") then save "~/Mail/mailinglist" # This mailing list actually has an x-mailing-list header if (mailinglist = "smartlist@other.com") then save "~/Mail/otherlist" # auto-archive this project's email, AND put in my current mailbox if (subject = "strange project") then savecopy "~/Mail/proj-archive" # If "make money" appears ANYWHERE in subject, upper/lowercase, # delete the lousy spam if ( subject = "make money" ) then delete # This person no longer shares this virtual mailbox with me. # Resend visibly as a "forwarded" message. if (to = "partner") then forward "partner@new.address.com" # If email for an old address comes to me, resend to new one. # Note that the "envelope" will show my address, but the # normal headers will not if ( to = "old_address" ) then resend new@address.here" # Special virtual headerline derived from normal subject line # catches "multiple!!!wor+ds**here" if ( alphasubject = "multiplewordshere" ) then delete # If email for a special address comes to me, resend through # a non-standard "special" mailer if ( to = "special_address" ) then exec "/usr/lib/mailer special@addr" # # The rules file doesnt really need parentheses. Or even the 'if'. # They are just traditional. subject = "silly" then bounce Note that all filenames must be double-quoted For further information about the rules language, please see The Elm Filter Guide. MAINTAINER
Philip Brown FILES
$HOME/.filter/filter-rules Default rules file $HOME/.filter/filterlog A log of what has been done $HOME/.filter/filtersum A summary of what has been done $MAIL IF you set this var, defines your default mailbox /etc/passwd Used to get users home directory SEE ALSO
The Elm Filter Guide (distributed with the source code) mail(1), mailx(1), sendmail(1,8) COMMENTS
Could be smarter about pattern matching. Message body checks might be nice too. Please note that this was historically bundled with the elm mail reader, but now can be found at http://www.bolthole.com/filter/ BUG REPORTS TO
filter@bolthole.com COPYRIGHTS
Copyright 1988-1992 by The USENET Community Trust Derived from Elm 2.0, Copyright 1986, 1987 by Dave Taylor USENET Comm. Trust 19 April 2004 FILTER(1)
All times are GMT -4. The time now is 09:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy