Sponsored Content
Top Forums Shell Programming and Scripting mailx is not working outside e-mails Post 302132124 by raosurya on Wednesday 15th of August 2007 10:55:57 AM
Old 08-15-2007
mailx is not working outside e-mails

HI
i wrote schell script to send e-mail automatically.
it works only e-mail for our company.say for example,
company name is : abc,
example: joe@abc.com
every body is receiving with xxx@abc.com (abc.com)
if any body from outside of our company like
joe@xyz.com.(xyz.com) are not receiving. we are using SMTP in unix server.

what could be the problem why other server e-mail groups are receiving.
is there any setting on SMTP on unix server or any firewalls setting unix server.
is there any alternate way to fix the problem.

thanks for your help
N.
 

10 More Discussions You Might Find Interesting

1. Solaris

how to send mails to users on exchange server from sendmail/solaris(mailx)

Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies

2. UNIX for Dummies Questions & Answers

Does Mailx store the mails sent

Hi, I use mailx in a shell script to mail a message to the users. i wanted to know if mailx stores the mail that it sends? for eg in microsoft outlook all mails sent get stored in the outbox. is there such a facility with mailx? if not how i can do this so that for every mail sent, a backup... (6 Replies)
Discussion started by: munira_johar
6 Replies

3. Debian

cannot send any mails using mailx

hi howto configure mailx ? kind regards ccc (11 Replies)
Discussion started by: ccc
11 Replies

4. Shell Programming and Scripting

Delete all mails using mailx or mail

Hi , ?im a newbie using shell scripts. Is there any way to write a script that will delete all mails from my mailbox using mail or mailx command Thanks for your time E. Festas (2 Replies)
Discussion started by: ninjanesto
2 Replies

5. Solaris

mailx not working

i am supporting a server running Solaris 5.6.I don't know if the mail is configured on this server. i ran the following commands and got the corresponding output. #which mailx /usr/bin/mailx #ps -ef | grep sendmail root 601 1 0 Jan 10 ? 0:01 /usr/lib/sendmail... (1 Reply)
Discussion started by: asalman.qazi
1 Replies

6. Shell Programming and Scripting

mailx -s is not working

Hello, I have two unix boxes.. One of the unix box version is Linux iduxlys 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux I have shell script which has the below script. cat xyz.log|mailx -s "export is Successful" \ xyz.xyz@xyz The above... (3 Replies)
Discussion started by: govindts
3 Replies

7. Shell Programming and Scripting

mailx- how to delete least of mails

Hi, when i run the mailx command it gives me the least of mails . suppose there are 1- 150 mails and i want to delete 30 to 145 mails . then what command i have to use here? Thanks (6 Replies)
Discussion started by: aish11
6 Replies

8. Shell Programming and Scripting

2 mails from mailx command

hi, While using mailx command i am receiving 2 mails with the same content in both the mails.I am attaching a file to the mailx command. In one mail file is coming as attachement and in other attachment is not there. I am using mailx command in this way. echo "Some content" |mailx... (0 Replies)
Discussion started by: arijitsaha
0 Replies

9. IP Networking

Set default return address for all mails sent from mailx

Hi, I have a question about mailx in Red Hat: If I use 'mail userid@mydomain.com -- -f root@mydomain.com', the return mail address will be root@mydomain.com. How can I make all mails sent from this system use root@mydomain.com as return address by default? Thank you in advance! nz (1 Reply)
Discussion started by: aixlover
1 Replies

10. HP-UX

Mailx command running successfully but no mails received.

Hi, I am working on a HP-UX box. Mailx command running successfully but no mails received. Here is what I am doing rocfm@comhp73 - mailx -s "subject" abc@gmail.com < abc.txt Null message body; hope that's ok rocfm@comhp73 - echo $? 0 rocfm@comhp73 - echo "something" | mailx -v -s... (1 Reply)
Discussion started by: Sunayna
1 Replies
proxsmtpd(8)						    BSD System Manager's Manual 					      proxsmtpd(8)

NAME
proxsmtpd -- an SMTP server for performing filtering SYNOPSIS
proxsmtpd [-d level] [-f configfile] [-p pidfile] proxsmtpd -v DESCRIPTION
proxsmtpd is an SMTP filter that allows you to perform arbitrary filtering on email. It accepts SMTP connections and forwards the SMTP com- mands and responses to another SMTP server. The DATA email body is intercepted and scanned before forwarding. Email can be altered, bounced, or silently dropped. proxsmtpd aims to be lightweight and simple rather than have a myriad of options. The options it does have are configured by editing the proxsmtpd.conf(5) file. See the man page for proxsmtpd.conf(5) for more info on the default location of the configuration file. OPTIONS
The options are as follows. -d Don't detach from the console and run as a daemon. In addition the level argument specifies what level of error messages to dis- play. 0 being the least, 4 the most. -f configfile specifies an alternate location for the proxsmtpd configuration file. See proxsmtpd.conf(5) for more details on where the configuration file is located by default. -p pidfile specifies a location for the a process id file to be written to. This file contains the process id of proxsmtpd and can be used to stop the daemon. -v Prints the proxsmtp version number and exits. FILTER SCRIPTS
The filter script is specified using the FilterCommand option. By default the email is piped through the script on standard input. Standard output is read for the filtered email. Standard error is also read for error messages. If the FilterType option is set to 'file', your filter will operate on a file rather than processing standard in and standard out. The file name will be passed to your filter command using the EMAIL environment variable. Your script can change the file as needed. Standard error is still processed as outlined below. If the filter command returns a successful exit code (ie: 0), then the filtered email is sent to the destination mail server as usual. When a error exit code (ie: anything but 0) a failure message is sent back to the sending server. In this case the email is not sent. You can customize the error message sent back. The last line of output printed to standard error will be used in this case. If you specify a full SMTP error code then it will be used (ie: '550 Bad Email'). If it's just a text message then a 550 SMTP error code will be used. You can silently drop messages by using an error message with a 250 SMTP code. This gives the illusion to the sending server that the email was accepted. Various environment variables will be present when your script is run. You may need to escape them properly before use in your favorite scripting language. Failure to do this could lead to a REMOTE COMPROMISE of your machine. CLIENT The network address of the SMTP client connected. EMAIL When the FilterType option is set to 'file', this specifies the file that the email was saved to. RECIPIENTS The email addresses of the email recipients. These are specified one per line, in standard address format. REMOTE If proxsmtpd is being used to filter email between SMTP servers, then this is the IP address of the original client. In order for this information to be present (a) the SMTP client (sending server) must an send an XFORWARD command and (b) the SMTP server (receiving server) must accept that XFORWARD command without error. REMOTE_HELO If proxsmtpd is being used to filter email between SMTP servers, then this is the HELO/EHLO banner of the original client. In order for this information to be present (a) the SMTP client (sending server) must an send an XFORWARD command and (b) the SMTP server (receiving server) must accept that XFORWARD command without error. SENDER The email address for the sender of the email. SERVER The network address of the SMTP server we're connected to. TMPDIR The path to the temp directory in use. This is the same as the TempDirectory option. LOGGING
proxsmtpd logs to syslogd by default under the 'mail' facility. You can also output logs to the console using the -d option. LOOPBACK FEATURE
In some cases it's advantageous to consolidate the filtering for several mail servers on one machine. proxsmtpd allows this by providing a loopback feature to connect back to the IP that an SMTP connection comes in from. To use this feature specify only a port number (no IP address) for the OutAddress setting in the configuration file. This will cause proxsmtpd to pass the email back to the said port on the incoming IP address. Make sure the MaxConnections setting is set high enough to handle the mail from all the servers without refusing connections. TRANSPARENT PROXY FEATURE
A transparent proxy is a configuration on a gateway that routes certain types of traffic through a proxy server without any changes on the client computers. proxsmtpd has support for transparent proxying of SMTP traffic by enabling the TransparentProxy setting. This type of set- up usually involves firewall rules which redirect traffic to proxsmtpd and the setup varies from OS to OS. The SMTP traffic will be forwarded to it's original destination after being scanned. Note that some features (such as SSL/TLS) will not be available when going through the transparent proxy. Make sure that the MaxConnections setting is set high enough for your transparent proxying. Because proxsmtpd is not being used as a filter inside a queue, which usually throttles the amount of email going through, this setting may need to be higher than usual. SECURITY
There's no reason to run this daemon as root. It is meant as a filter and should listen on a high TCP port. Care should be taken with the directory that proxsmtpd writes its temporary files to. In order to be secure, it should not be a world write- able location. Specify the directory using the TempDirectory setting. Make sure you understand the issues involved with escaping external data. The environment variables such as SENDER or RECIPIENTS need to be treated with care. If running proxsmtpd on a publicly accessible IP address or without a firewall please be sure to understand all the possible security issues. This is especially true if the loopback feature is used (see above). SEE ALSO
proxsmtpd.conf(5) AUTHOR
Stef Walter <stef@memberwebs.com> proxsmtp June 1, 2019 proxsmtp
All times are GMT -4. The time now is 08:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy