LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2002, 02:41 PM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
How to prepare a local mail with attachment


I wanted to simulate a server situation on my home machine setting up and testing a mail filter using sendmail + procmail + sanitizer + a virus scanner.


So far the mail filter seems to be OK on test messages generated with formail, however, I wanted to create more complex mails with attachments.


Could you please tell me what is the best way to send local mails with attachment from one user to another on a desktop machine?





P.S.


I tried to send local mails using kmail but those messages just sit in /var/spool/mqueue undelivered forever - a thing that I cannot understand since:


- kmail is set to use /usr/sbin/sendmail (path is OK)
- I tested with sendmail -bv that sendmail knows about the local recepients


- sendmail.cf contains the definition of procmail as the local mailer (and, procmail is OK, since 'cat filename I formail -s procmail' messages are always correctly delivered; so do local system messages to root).
- checked that kmail and procmail knows that the local user mailboxes are in /var/spool/mail
What is wrong then?
 
Old 07-07-2002, 03:42 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Kmail should be configured as if you marchine is an remote server (especially smtp setting). If you have problems with kmail use a different one: mailer from Mozilla, pan, console pine etc.
 
Old 07-07-2002, 05:38 PM   #3
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
to send mail to localhost use the username from the command line you could do:

mailx -s "subject" username < attachment
or mutt username <attachment
 
  


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
mail attachment problems with outlook atomicx Programming 2 05-03-2005 01:13 PM
Mail Attachment size hinetvenkat Linux - Security 3 12-26-2004 08:05 AM
qmail local attachment limit lsimon4180 Linux - Software 13 11-04-2004 02:18 PM
mail -a would not work to send e-mail attachment saavik Linux - Networking 3 12-18-2003 09:33 AM
mail with attachment joseph Linux - Networking 1 08-31-2003 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 PM.

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