LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-06-2012, 11:41 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Problem on sending attachment


Hi all,

I'm following;
Postfix Virtual MailBox Clam Smtp Howto
https://help.ubuntu.com/community/Po...tual_mailboxes

building a mail server.

Coming to;
Test ClamSMTP for outgoing mail
Send this file as an attachment to info@domain1.com
(it is a virus .zip file)

$ uuencode eicar_com.zip | mail info@domain1.com
It was hanging there for prolonged time. I have to cancel it manually.

$ mutt -s "Test mail" -a eicar_com.zip info@domain1.com < /tmp/mailmessage.txt
Code:
Can't stat info@domain1.com: No such file or directory
info@domain1.com: unable to attach file.
Any clue? TIA

B.R.
satimis
 
Old 03-06-2012, 12:41 PM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Code:
mutt -s "Test mail" -a eicar_com.zip -- info@domain1.com < /tmp/mailmessage.txt
The problem it's not the eicar test virus, it's the -a option: mutt thinks that info@domain1.com it's another file to attach, so you have to separate address with double dash.
 
Old 03-06-2012, 08:43 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Solved

Quote:
Originally Posted by Slackyman View Post
Code:
mutt -s "Test mail" -a eicar_com.zip -- info@domain1.com < /tmp/mailmessage.txt
The problem it's not the eicar test virus, it's the -a option: mutt thinks that info@domain1.com it's another file to attach, so you have to separate address with double dash.
Hi,

Thanks for your advice. It works here.

B.R.
satimis
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail attachment via Sendmail antanas Linux - Newbie 6 11-25-2009 05:54 PM
C code for Sending Email with attachment Mr coder Programming 5 03-07-2009 12:21 PM
C code for Sending Email with attachment Mr coder Linux - Newbie 1 03-06-2009 06:25 AM
Sending file attachment with Sendmail aurelio26 Linux - Newbie 2 09-17-2004 12:36 AM
sending an attachment Sathe Linux - General 1 12-02-2001 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration