Operating System - HP-UX
1822320 Members
5950 Online
109642 Solutions
New Discussion юеВ

Unable to send large files -- mailx

 
Nayak's
Frequent Advisor

Unable to send large files -- mailx

Hi Guys,
I am unable to send large files using mailx. There is no problem sending file sizes of 1-2 KB. But nothing more than that goes through.

thanks in advance
sanjay
14 REPLIES 14
Dennis Handly
Acclaimed Contributor

Re: Unable to send large files -- mailx

Where is it being stopped? Have you tried sending large files to yourself on HP-UX?
Nayak's
Frequent Advisor

Re: Unable to send large files -- mailx

i can see it in the mailq. At the moment i am trying to send the files to myself

sanjay
Anshumali
Esteemed Contributor

Re: Unable to send large files -- mailx

What is the O/P for below...

sendmail -v -d9.99 -d38.99 email_user < /tmp/file_name

Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Dennis Handly
Acclaimed Contributor

Re: Unable to send large files -- mailx

>At the moment i am trying to send the files to myself

To yourself on the local machine?
Rasheed Tamton
Honored Contributor

Re: Unable to send large files -- mailx

Hi,

Exactly what command you used.

Check the /var/adm/syslog/mail.log file for any messages.

Regards.
Steven E. Protter
Exalted Contributor

Re: Unable to send large files -- mailx

Shalom,

sendmail itself which is the default MTA for HP-UX does have some limits on attached filesize.

I believe this is done to prevent spammers from taking down an entire machine by clogging its /var directory with attachments.

The default limit is I believe 2 MB, although you can increase that by changing sendmail.cf or using sendmail macro compiles (much more human readable).


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Nayak's
Frequent Advisor

Re: Unable to send large files -- mailx

Hi Anshu,
Sorry about the delay..here is the output

[rosob01a]/tmp $ sendmail -v -d9.99 -d38.99 sanjay.nayak@hp.com seq_map_parse(aliases.files, )
getauthinfo: root@localhost
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(host:resolve, NULL, 0)
host:resolve NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(host:resolve, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
host_map_lookup(hp.com) => getcanonname(hp.com), trying dns
getcanonname(hp.com), found
hp.com
sanjay.nayak@hp.com... queued
closemaps: closing aliases.files (NULL)
closemaps: closing Alias0 (/etc/mail/aliases)
impl_map_close(Alias0, /etc/mail/aliases, 12a3)
db_map_close(Alias0, /etc/mail/aliases, 12a3)
closemaps: closing host (NULL)
closemaps: closing aliases (aliases)
closemaps: closing dequote (NULL)
closemaps: closing resolve (NULL)
[rosob01a]/tmp $
Nayak's
Frequent Advisor

Re: Unable to send large files -- mailx

Hi Dennis,
Yes i am trying to send the email to myself

sanjay
Nayak's
Frequent Advisor

Re: Unable to send large files -- mailx

Hi Rasheed,
Here is the relevant output from the log. As you could see the smaller files go fine. It is only the larger files that get stuck

Jul 7 04:36:46 rosob01a sendmail[21002]: EAA20999: to=omniadmin@hpbs4170.boi.hp.com, ctladdr=root (0/3), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, relay=hpbs4170.boi.hp.com. [15.8.38.203], stat=Sent (2.0.0 m67Bbke13289 Message accepted for delivery)
Jul 7 04:36:46 rosob01a sendmail[21002]: EAA20999: done
Jul 7 04:44:49 rosob01a sendmail[21616]: EAA21616: from=choudhmi, size=42430, class=0, pri=72430, nrcpts=1, msgid=<200807071144.EAA21616@rosob01a.rose.hp.com>, relay=root@localhost
Jul 7 04:44:49 rosob01a sendmail[21616]: EAA21616: to=sanjay.nayak@hp.com, delay=00:00:00, mailer=esmtp, stat=queued
[rosob01a]adm/syslog $ mailq



sanjay
Rasheed Tamton
Honored Contributor

Re: Unable to send large files -- mailx

Did you try uuencode

uuencode file filename |mailx -s "uuencode" sanjaynaik@hp.com
Dennis Handly
Acclaimed Contributor

Re: Unable to send large files -- mailx

>Yes i am trying to send the email to myself

But not to HP-UX on your local machine. It seems you sent it around the world. :-)
Nayak's
Frequent Advisor

Re: Unable to send large files -- mailx

Sorry to confuse you Dennis,
I meant yes i am trying to send the file from the machine to my mailbox. Do tell me if that is not clear.

thankyou
sanjay
Dennis Handly
Acclaimed Contributor

Re: Unable to send large files -- mailx

>i am trying to send the file from the machine to my mailbox

I was suggesting you only send the mail on a short hop (back to the same machine), only through HP-UX to see where the limits are.
Sharma Sanjeev
Respected Contributor

Re: Unable to send large files -- mailx

Hi Sanjay

Try this

ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE