Sponsored Content
Top Forums Shell Programming and Scripting begin 644 in received message sent with sendmail Post 302358303 by pok.fung on Friday 2nd of October 2009 04:41:03 AM
Old 10-02-2009
I modified the script and gmail can show the attachment. However, the pdf cannot be opened. It seems to be damaged. Thanks.

Anyone can help to identify what parts are not good.

<< script content >>
Code:
#!/usr/bin/ksh

/usr/lib/sendmail -C sendmail.cf abc@gmail.com << END
Subject: HELLO
Content-Type: multipart/mixed; boundary="_boundarystring"

--_boundarystring
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="123.pdf"
Content-Transfer-Encoding: 7bit
`uuencode 123.pdf 123.pdf`
--_boundarystring--
END


Last edited by Franklin52; 10-02-2009 at 05:46 AM.. Reason: Please use code tags!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sendmail message body buffer limit?

when sending the contents of a ascii file to the body of an email then sending it off. it seems sendmail is breaking up the lines with a "!" thus ruining the data. Has this ever happened to anyone? i am guessing there is a line buffer limit in either the mail command or in sendmail itself. ... (3 Replies)
Discussion started by: Optimus_P
3 Replies

2. UNIX for Advanced & Expert Users

Ftp permission 644

On Sun Solaris 8 I would like a user to post via FTP a file with a put command with higher permission than the standard 644. For instance 664. I don't know how to perform it. Thank you in advance. (4 Replies)
Discussion started by: cagnod
4 Replies

3. Cybersecurity

Sendmail keep a user from send message

Hello, i have a problem with my sendmail, i want' to keep a user from sending mail, how can i process ? My user is titi, and i don't want' that titi can't send mail via sendmail is it possible ? thnak a lot (1 Reply)
Discussion started by: westside
1 Replies

4. UNIX for Advanced & Expert Users

sendmail and message alert

gurus, i need to know 2 things, first: how can i send mail over the internet in case of system failures/crash? second: how can i receive SMS alert on my phone in case of failures? do i need to start any service on my box? thanks & regards abhijeet (1 Reply)
Discussion started by: abhijeetkul
1 Replies

5. UNIX for Dummies Questions & Answers

SCO 5.0.7 Cron creates files with 600, need 644

Hi, I've searched and read, and searched and read some more; but I'm still not connecting the dots or understanding what I need to change. I have a script that creates a file. If I run it as root, the file gets created with 644 permissions like I want. That seems to make sense (at least I... (2 Replies)
Discussion started by: 65bit
2 Replies

6. Shell Programming and Scripting

override protection 644 (yes/no)?

Hi pls help me out to short out this problem rm PAB113_011.out rm: PAB113_011.out: override protection 644 (yes/no)? n If i give y it remove the file. But i added the rm command as a part of ksh file and i tried to remove the file. Its not removing and the the file prompting as... (9 Replies)
Discussion started by: sri_aue
9 Replies

7. UNIX for Dummies Questions & Answers

Sendmail error message

Hi i am having a probleme with my sendmail server. using it as a mta to send out email. keem on getting this error message back. ----- The following addresses had permanent fatal errors ----- <XXX@XXXX.co.za> (reason: 554 Denied (Mode: normal)) ----- Transcript of session... (1 Reply)
Discussion started by: sakie
1 Replies

8. Shell Programming and Scripting

How to avoid "override protection 644 (yes/no)?" -ksh 88

Hi All, I'm using Ksh 88 version. I'm trying to remove the files using the below script .The code is working fine but i'm getting override protection 644 (yes/no)? message for every file .. Pelase suggest #!/usr/bin/ksh set -x File_Path="/etc/home/logs" Dest_Path="/etc/home/temp"... (1 Reply)
Discussion started by: smile689
1 Replies

9. AIX

How to create all files generated in a directory with 644 permissions?

Hi, We are using AIX machines. How to create all files generated in a directory with 644 permissions automatically. Regards, Suresh (11 Replies)
Discussion started by: suresh3566
11 Replies
mailto.conf(5)							    Apple Inc.							    mailto.conf(5)

NAME
mailto.conf - configuration file for cups email notifier DESCRIPTION
The mailto.conf file defines the local mail server and email notification preferences for CUPS. Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character. DIRECTIVES
Cc cc-address@domain.com Specifies an additional recipient for all email notifications. From from-address@domain.com Specifies the sender of email notifications. Sendmail sendmail command and options Specifies the sendmail command to use when sending email notifications. Only one Sendmail or SMTPServer line may be present in the mailto.conf file. If multiple lines are present, only the last one is used. SMTPServer servername Specifies a SMTP server to send email notifications to. Only one Sendmail or SMTPServer line may be present in the mailto.conf file. If multiple lines are present, only the last one is used. Subject subject-prefix Specifies a prefix string for the subject line of an email notification. SEE ALSO
classes.conf(5), cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), printers.conf(5), http://localhost:631/help COPYRIGHT
Copyright 2007-2009 by Apple Inc. 12 July 2006 CUPS mailto.conf(5)
All times are GMT -4. The time now is 05:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy