Sponsored Content
Full Discussion: UNIX mail utility
Top Forums UNIX for Beginners Questions & Answers UNIX mail utility Post 302980744 by stomp on Thursday 1st of September 2016 06:34:30 PM
Old 09-01-2016
Under Unix there is a separation of process with different functions. mailx is a mail user agent. It creates a mail from the user and delivers it via sendmail-binary.Look here for an explanation:

linux - Does mailx send mail using an SMTP relay or does it directly connect to the target SMTP server? - Super User

At the linked thread, there is also a possibility howto use mailx with your own preferred smtp-server using command line arguments. Maybe this is an option for you too.

So in short mailx has neither an smtp server configured within itself nor does it even know about that server. There is probably an MTA(Mail Transfer Agent) at your HP-UX Box, which is responsible for sending mails. This MTA(Popular MTAs are postfix and exim, others are courier, sendmail(the above mentioned sendmail-binary and the sendmail-mta are quite different things)). Sometimes there are some simple relay-only-MTAs(like nullmailer), which are just transferring the mail to remote MTA and let that take care of the real mail processing.

Knowing nearly nothing about HP-UX, just assuming that the software-stack is some levels older than under linux, I'm guessing there is some version of the sendmail-mta running. So if available: ask your local sysadmin. Smilie configuring sendmail is fun. Though not the type of fun you are used to.

Configuration files are located standardized within the /etc directory. Somewhere in this directory subtree, the mailserver is configured.

For a start, you may search the /etc directory recursively for your current used mailserver, like this:

Code:
grep -r mailserver.domain.tld /etc

You can grep through your application directory too. Of course grep will not find your mailservername if contained inside a compressed file(like a jar).

Last edited by stomp; 09-01-2016 at 07:51 PM..
 

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 Advanced & Expert Users

Problem with tip utility in unix

Hi , I have wrote a telnet clinet application to interact with remote system . This program takes the screen shots for every interaction and send back to us. After connecting to remote machine , i want to call tip utility to interact with a device which is connected to one remote system. Now my... (0 Replies)
Discussion started by: prasadvsda
0 Replies

3. 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

4. Shell Programming and Scripting

VLOOKUP utility in UNIX

Kindly help me to build the script similar to VLOOKUP function of MS Excell. (5 Replies)
Discussion started by: hjoshi
5 Replies

5. UNIX for Dummies Questions & Answers

age utility in unix

Hi, Can anyone explain me the use of age utility and how it works? Looking forward reply... Thanks, Venkatesh. (1 Reply)
Discussion started by: venkatesht
1 Replies

6. UNIX for Dummies Questions & Answers

Unix mail to personal mail, Strange behavour

Hi. I am running a script on solaris 10 and mailing it to my personal email. the script is ran as user xxx, And i have edited the crontab for user xxx to run the script and mail it to my email account. /network_check.sh | /usr/bin/mailx -s "Network Test" k454@hotmail.com the sript... (2 Replies)
Discussion started by: k00061804
2 Replies

7. Red Hat

Problem with mail utility on linux

Hi, I am facing problem with "mail" utility on redhat linux. If I use ~c in a file and use that file as imput to mail, the mail is not sent to the adrress after ~c. Instead ~c apears in the mail content itself. $ mail a@mycompany.com < temp $ cat temp ~c abc@mycompany.com this is... (7 Replies)
Discussion started by: shriashishpatil
7 Replies

8. Shell Programming and Scripting

Mail utility not displaying escape sequences

Hello! I created a file that displays text underlined. However when I pass the file into the mail utility it doesnt display the underline. Here is the code: echo "\n\033 cat test_underline.txt mail -s "testing of underline" <email_address> < test_underline.txt Any ideas?... (8 Replies)
Discussion started by: DPERTS
8 Replies

9. 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

10. Linux

UNIX Utility Development Conventions?

I'm slowly hacking away at a zsh script that shows some promise as a command line tool. I want to learn more about the conventions regarding command line tool development in Unix (and/or macOS), but don't really know where to look for this information. What is the correct way, or convention, to... (2 Replies)
Discussion started by: MonilGomes
2 Replies
dxfileshare(8)						      System Manager's Manual						    dxfileshare(8)

NAME
dxfileshare - Exports local directories and mounts directories from the network SYNOPSIS
/usr/bin/X11/dxfileshare DESCRIPTION
Use the File Sharing application, dxfileshare, to: Export (or share) local UNIX directories to the network Stop exporting UNIX local direc- tories to the network Specify which directories mounted from the network are to be remounted every time the system is rebooted, that is, add an entry to the /etc/fstab file Add, change, or delete NFS entries from the /etc/exports file Share local UNIX directories with a per- sonal computer (PC) when Advanced Server for UNIX is installed on your system Display local directories that are shared (exported) with the network Display network mounts (directories that can be mounted from the network) The File Sharing application can also be invoked from the CDE Application Manager from the following categories: Application Group: System_Admin System Admin Subgroup: Daily Admin Online help is available for the File Sharing application by clicking on any Help button or using the Help pull-down menu. RESTRICTIONS
You must have root privileges to use certain features of File Sharing. Namely, the ability to export (or share) a directory or to modify the properties of a directory that is already being exported. You must have Advanced Server for UNIX installed on your system to share local directories with PCs. FILES
Defaults that are shared by the graphical and command line user interface. File Sharing uses the same file as the Host Manager application. File Sharing application File Sharing help volume Directory containing File Sharing application icons Application defaults file that sets the default values for the X resources File Sharing message catalog Message catalog containing File Sharing location IDs for on-item help i18n_motif_shared_text.cat Message catalog containing application-independent messages i18n_motif_shared_text_LocIds.cat Message catalog containing application-independent location IDs for on-item help SEE ALSO
Commands: X(1X), automount(8), bcheckrc(8), mount(8), mountd(8), showmount(8), umount(8) Functions: getfsstat(2), getmntinfo(3), getmntinfo_r(3), mount(2), mount(2sv), umount(2), umount(2sv), umount(3) Files: exports(4), fstab(4), mountdtab(4) Tru64 UNIX System Administration ASU Installation and Administration Guide ASU Concepts and Planning Guide dxfileshare(8)
All times are GMT -4. The time now is 12:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy