Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Postfix Problem under mailx/sendmail command Post 302113760 by monkfan on Tuesday 10th of April 2007 04:07:38 AM
Old 04-10-2007
Postfix Problem under mailx/sendmail command

Update: Problem solved with this command: /opt/soc/bin/postfix-setup

================================
Hi,

I am trying the following mailx command:

Code:
sadm@edwardwi-z:/etc$ mailx ewijaya@gmail.com
Subject: test
foo .
.
EOT

But it gives the following error

Code:
sadm@edwardwi-z:/etc$ mail: fatal: open /etc/postfix/main.cf: No such file or directory

I can't seem to find "main.cf" but the location of postfix is this:

Code:
root@edwardwi-z:/opt/postfix/sbin# ls
postalias  postconf   postfix    postlock   postmap    postsuper
postcat    postdrop   postkick   postlog    postqueue

I do have SU access to this. I'm using Solaris btw.

How can I fix such problem? So that I can successfuly email using mailx?

Last edited by monkfan; 04-10-2007 at 06:34 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with mailx command when sending attachment.

Hi, I have tried to sent a mail with body and attachment. But the shell script got hanging while executing that command. The command is "(cat body;uuencode att1.csv)|mailx -s "Production Monitoring Report(Unix Side)" milton.yesusundaram@patni.com" where body is a file having a single line.... (2 Replies)
Discussion started by: miltony
2 Replies

2. UNIX for Dummies Questions & Answers

postfix queue filling up (from sendmail?)

What is filling up my postfix queue (/var/spool/postfix/deferred/)? I had a perl script running via crontab to monitor my IP connection and send me a mail via sendmail. Now I have a huge queue of emails I keep getting. I've removed the crontab and the script. If I clear out... (0 Replies)
Discussion started by: kumakuma
0 Replies

3. OS X (Apple)

postfix queue filling up (from sendmail?)

What is filling up my postfix queue (/var/spool/postfix/deferred/)? I had a perl script running via crontab to monitor my IP connection and send me a mail via sendmail. Now I have a huge queue of emails I keep getting. I've removed the crontab and the script. If I clear out... (1 Reply)
Discussion started by: kumakuma
1 Replies

4. UNIX for Dummies Questions & Answers

How to set HIGH importance to a mail sent through mailx or sendmail command

I have written a script for sending automated email, reporting the running status of a cron scheduled work. Now, the issue is, my Project Manager wants, the mail should be received with HIGH IMPORTANCE. How can I do that, kindly anybody explain. Thank you so much. (3 Replies)
Discussion started by: mitte_dino
3 Replies

5. UNIX for Dummies Questions & Answers

problem with mailx command

Hi, I have written down a script and in that im using mailx command in Unix. Such that i have taken the reciepent that would be in "To" using read command i.e from standard input and echoed the reciepients in cc into a file .Now im not able to use the mailx -r ie which sends the sender... (1 Reply)
Discussion started by: navjotmannan
1 Replies

6. Solaris

Replace sendmail with Postfix

Hi, I am assigned to replace sendmail with Postfix in solaris 10. Can anyone please tell what are the steps should be taken like files to backup and what are the configurations should be taken care and so on??????? Appreciate any help.... (0 Replies)
Discussion started by: bpsunadm
0 Replies

7. Solaris

mailx/sendmail configuration/set up problem

Hello Good People of Linux World!!! Background: Recent Networking Graduate, thrown in line of fire. For the past couple of days I have been searching online for answers and haven't gotten anywhere regarding Mailx, Sendmail functionality on SunOS 5.9. My dilemma: Mailx / sendmail are... (28 Replies)
Discussion started by: kazmiM
28 Replies

8. Shell Programming and Scripting

Problem with -c option in Mailx command

Hi, I am using mailx command in shell script. When i put -c option for CC , i get error message as "Unknown flag: -c" . I checked manual of mailx command and found that ~c to be used but after using ~c also it is not working. My shell is Korn. Kindly let me know what i have to do . Thanks (9 Replies)
Discussion started by: krishna_gnv
9 Replies

9. UNIX for Dummies Questions & Answers

ACL for postfix or sendmail

Hello, i want to know how to configure a MTA to relay somes domain by IP source, example : toto.com and titi.com can relay with ip sender 10.2.2.0/24 only lulu.com can relay with ip sender 192.168.0.4/32 only all domain can relay with ip sender 172.0.0.5/32 only It's possible with policy... (9 Replies)
Discussion started by: safsound
9 Replies

10. UNIX for Dummies Questions & Answers

French characters in postfix/sendmail

Hello again, How can I send emails via postfix with special characters like "à" via postfix. When I'm paste-ing the special character inside a editor (nano) it shows like this --> � ... any tips? (1 Reply)
Discussion started by: galford
1 Replies
postfix-nochroot(8)					      System Manager's Manual					       postfix-nochroot(8)

NAME
postfix-nochroot - change /etc/postfix/master.cf to not use chroot SYNOPSIS
postfix-nochroot DESCRIPTION
Renames /etc/postfix/master.cf to /etc/postfix/master.cf.bak and creates a new /etc/postfix/master.cf file with every service configured to not use chroot. Every modified line is commented. It also restarts Postfix (to apply the change) and rmoves the unused chroot directories /var/spool/postfix/{etc,lib,usr} . Using a chroot environment makes upgrades more difficult and gets in the way when running SE Linux (without actually providing any security benefit in a SE Linux system). SEE ALSO
selinux(8), sestatus(8), selinuxenabled(1), check-selinux-installation(8), selinux-config-enforcing(8), selinux-policy-upgrade(8), http://wiki.debian.org/SELinux - More about SELinux Debian install, http://etbe.coker.com.au/tag/selinux/ - Russell's SE Linux blog posts, http://etbe.coker.com.au/2008/08/02/postfix-and-chroot/ - post about this script. AUTHOR
This program and it's man page was written by Russell Coker <russell@coker.com.au> for the Debian system (but may be used by others). Per- mission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3. postfix-nochroot(8)
All times are GMT -4. The time now is 08:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy