Sponsored Content
Full Discussion: Send Mail
Top Forums UNIX for Dummies Questions & Answers Send Mail Post 302847997 by cnrj on Wednesday 28th of August 2013 09:08:16 AM
Old 08-28-2013
Send Mail

Hi

I want to send email from unix box. I tried below code
Code:
sendmail -s Hello cnrj@mail.com

It has given Warning as below
WARNING: RunAsUser for MSP ignored, check group ids (egid=33064, want=25)
can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.


Could some one let me know what are all the things i need to check before using 'Sendmail'.

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies

2. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

3. Shell Programming and Scripting

Pull E-mail address from file, send e-mail

Hello, I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail. How can I use the following awk statement in a perl script? grep UNIXadmins /root/mail.conf | awk '{ print $2}' and use the output to send a e-mail. Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies

4. UNIX for Advanced & Expert Users

send attachments using send mail in Solaris

Hi All, I have a requirement to send and email of body html with an attachment. concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail. my command to send HTML body is as below: export MAILTO="recipient@domain.com"... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies

5. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

6. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

7. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

8. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

9. Ubuntu

Not able to send mail out of UbuntuBox in send mail

Hi Guys.. yesterday i purchased a VPS server and installed sendmail on ubuntu 12.4 with Webmin & Apache runing webserver problem is.. i can send mail via webmin user interface account to anybody to out side to any domain and able to recieve any mail from any domain.. Now main... (2 Replies)
Discussion started by: cmdman
2 Replies

10. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
LAMSON(1)																 LAMSON(1)

NAME
Lamson - Lamson is a modern Pythonic mail server built like a web application server. SYNOPSIS
lamson <action> [options] DESCRIPTION
lamson is a pure Python SMTP server designed to create robust and complex mail applications in the style of modern web frameworks such as Django. Unlike traditional SMTP servers like Postfix or Sendmail, Lamson has all the features of a web application stack (ORM, templates, routing, handlers, state machines, Python) without needing to configure alias files, run newaliases, or juggle tons of tiny fragile pro- cesses. Lamson also plays well with other web frameworks and Python libraries. ACTIONS
log [-port PORT] [-host HOST] [-pid PIDFILE] [-chroot True|False] [-chdir DIR] [-umask UMASK] [-uid UID] [-gid GID] [-FORCE True|False] Runs a logging only server on the given hosts and port. It logs each message it receives and also stores it to the run/queue so that you can make sure it was received in testing. lamson log -port 8825 -host 127.0.0.1 -pid ./run/log.pid -chroot False -chdir "." -umask False -uid False -gid False -FORCE False If you specify a uid/gid then this means you want to first change to root, set everything up, and then drop to that UID/GID combina- tion. This is typically so you can bind to port 25 and then become "safe" to continue operating as a non-root user. If you give one or the other, this it will just change to that uid or gid without doing the priv drop operation. send [-port PORT] [-host HOST] [-debug 0|1] [-sender EMAIL] [-to EMAIL] [-subject SUBJECT] [-body BODY] [-attach FILENAME] Sends an email to someone as a test message. See the sendmail command for a sendmail replacement. lamson send -port 8825 -host 127.0.0.1 -debug 1 -sender EMAIL -to EMAIL -subject STR -body STR -attach False' sendmail [-port PORT] [-host HOST] [-debug 0|1] -- [RECIPIENTS] Used as a testing sendmail replacement for use in programs like mutt as an MTA. It reads the email to send on the stdin and then delivers it based on the port and host settings. lamson sendmail -port 8825 -host 127.0.0.1 -debug 0 -- [recipients] start [-pid PIDFILE] [-FORCE True|False] [-chroot True|False] [-chdir DIR] [-umask UMASK] [-uid UID] [-gid GID] [-boot BOOTMODULE] Runs a lamson server out of the given directory. lamson start -pid ./run/smtp.pid -FORCE False -chroot False -chdir "." -umask False -uid False -gid False -boot config.boot stop [-pid PIDFILE] [-KILL True|False] [-ALL DIR] Stops a running lamson server. Give -KILL True to have it stopped violently. The PID file is removed after the signal is sent. Give -ALL the name of a run directory and it will stop all pid files it finds there. lamson stop -pid ./run/smtp.pid -KILL False -ALL False restart [-pid PIDFILE] [-FORCE True|False] [-chroot True|False] [-chdir DIR] [-umask UMASK] [-uid UID] [-gid GID] [-boot CONFIG] [-KILL True|False] [-ALL DIR] Simply attempts a stop and then a start command. All options for both apply to restart. status [-pid PIDFILE] Prints out status information about lamson useful for finding out if it's running and where. lamson status -pid ./run/smtp.pid queue [-pop|-get|-remove|-count|-clear|-keys] [-name QUEUE] Let's you do most of the operations available to a queue. lamson queue (-pop | -get | -remove | -count | -clear | -keys) -name run/queue routes [-path PATH] -- [CONFIG] [-test EMAIL] Prints out valuable information about an application's routing configuration after everything is loaded and ready to go. Helps debug problems with messages not getting to your handlers. Path has the search paths you want separated by a ':' character, and it's added to the sys.path. lamson routes -path $PWD -- config.testing -test "" It defaults to running your config.testing to load the routes. If you want it to run the config.boot then give that instead: lamson routes -- config.boot You can also test a potential target by doing -test EMAIL. gen [-project NAME] Generates various useful things for you to get you started. lamson gen -project STR spell [-language LANG] -- [FILES] Runs the PyEnchant spell checker on the given file. Use this to train the spell checker for unit test runs when new words show up. lamson spell -langauge en_US -- [files] It will run interactively and if you perform an edit on the file it will save your changes back to the file and make a backup named with .bak. web [-basedir DIR] [-port PORT] [-host HOST] Starts a very simple files only web server for easy testing of applications that need to make some HTML files as the result of their operation. If you need more than this then use a real web server. lamson web -basedir "." -port 8888 -host '127.0.0.1' This command doesn't exit so you can view the logs it prints out. cleanse [-input MAILBOX] [-output MAILBOX] Uses Lamson mail cleansing and canonicalization system to take an input maildir (or mbox) and replicate the email over into another maildir. It's used mostly for testing and cleaning. blast [-input MAILBOX] [-port PORT] [-host HOST] [-debug 0|1] Given a maildir, this command will go through each email and blast it at your server. It does nothing to the message, so it will be real messages hitting your server, not cleansed ones. version Prints the version of Lamson, the reporitory revision, and the file it came from. help [-for CMD] Prints out help for the commands. lamson help You can get help for one command with: lamson help -for STR SEE ALSO
Full documentation for lamson can be found at http://lamsonproject.org BUGS
Please report bugs at https://bugs.launchpad.net/lamson AUTHOR
This manual page was written by David Watson <david@kutoken.com> 25 August 2009 LAMSON(1)
All times are GMT -4. The time now is 03:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy