Postfix Email Not Working In Oracle Linux

I have setup postfix in Oracle Linux VM in virtualbox to test simple email sends that I am sending it to my personal email.

I have configured the following in main.cf file

myhostname = abc.testserver.org
myorigin = $myhostname
inet_interfaces = localhost
#relayhost = localhost.localdomain - I have this commented as of now, but I tried with the localhost.localdomain, IP address and none worked. I also do not have my ISP's server details and I also do not want to use it.

I checked the /var/log/maillog and I see the following

Code:
May  4 17:25:37 oim sendmail[31684]: t44LPbKA031684: from=root, size=72, class=0, nrcpts=1, msgid=<201505042125.t44LPbKA031684@localhost.localdomain>, relay=root@localhost
May  4 17:25:37 oim sendmail[31685]: t44LPbSn031685: from=<root@localhost.localdomain>, size=378, class=0, nrcpts=1, msgid=<201505042125.t44LPbKA031684@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May  4 17:25:37 oim sendmail[31684]: t44LPbKA031684: to=abc@abc.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30072, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t44LPbSn031685 Message accepted for delivery)


I can also see the messages in /var/spool/mqueue/. The telnet to the localhost 25 port also works. Is any of the config settings wrong?

Thanks.


Similar Content



New With Sendmail, Not Receiving Mail After Sending

I'm new to Sendmail and I want to be able to grab various stats from the Linux servers that I manage to monitor them.

Sendmail is running on my main Linux server and I can go thru the motions of sending an email to my MS Outlook client, which is what I use at work.

However I never get the email and if I check /var/spool/mqueue, I don't see any email queued up, and if I put a tail -f on /var/log/mail, this is what I'm seeing:

Code:
Feb  3 10:20:38 computername sendmail[31432]: t13GKcri031432: from=cmmiller, size=77, class=0, nrcpts=1, msgid=<201502031620.t13GKcri031432@mailserver.com>, relay=cmmiller@localhost
Feb  3 10:20:39 computername sendmail[31433]: t13GKcVO031433: from=<cmmiller@mailserver.com>, size=425, class=0, nrcpts=1, msgid=<201502031620.t13GKcri031432@mailsever.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Feb  3 10:20:39 computername sendmail[31432]: t13GKcri031432: to=myemailaddress@com, ctladdr=cmmiller (602/602), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30077, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t13GKcVO031433 Message accepted for delivery)
Feb  3 10:20:39 computername sendmail[31435]: t13GKcVO031433: to=<myemailaddress@com>, ctladdr=<cmmiller@mailserver.com> (602/602), delay=00:00:00, xdelay=00:00:00, mailer=smtp, pri=120425, relay=smtp.server. [192.138.40.216], dsn=2.0.0, stat=Sent (+OK message queued for delivery.)

Not sure what to troubleshoot here, and if anyone can point me to better information, thanks.

Sendmail Is Not Working

Hi all,

I am trying to configure sendmail on my OEL 6.5 running on VM.

I did below to set it :

1. # yum install m4 telnet mailx
2. # yum install sendmail sendmail-cf
3. # ps -ef | grep -v grep | grep -i sendmail
root 3805 1 0 05:58 ? 00:00:00 sendmail: accepting connections
smmsp 3815 1 0 05:58 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

4. # netstat -an | grep :25 | grep tcp
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN

5. vi /etc/mail/sendmail.mc

From:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

To
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

6. # m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

7. # service sendmail restart

8. # vi /etc/mail/local-host-names
oracle.com

Now if I am sending mail from 1 user (root) to other user (oracle)

$ mail -s "Test mail from root" oracle
Hello this is the test mail
.
EOT

and checking mail log under /var/mail/oracle, its passing successfully.

But when trying to send the same from root user to my company outlook account not gtting any mail.

mail -s "Test mail from root" abc.xyz@aaaa.com (trying to send to my outlook account)

Getting below error on /var/log/maillog :

May 13 10:47:47 mydb sendmail[6306]: t4DEllUD006306: from=oracle, size=244, class=0, nrcpts=1, msgid=<201505131447.t4DEllUD006306@mydb.oracle.com>, relay=root@localhost
May 13 10:47:47 mydb sendmail[6307]: t4DEllxo006307: from=<oracle@mydb.oracle.com>, size=506, class=0, nrcpts=1, msgid=<201505131447.t4DEllUD006306@mydb.oracle.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
May 13 10:47:47 mydb sendmail[6306]: t4DEllUD006306: to=abc.xyz@aaaa.com, ctladdr=oracle (600/601), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30244, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t4DEllxo006307 Message accepted for delivery)
May 13 10:47:49 mydb sendmail[6309]: STARTTLS=client, relay=mail1.nic.aaaa.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
May 13 10:47:50 mydb sendmail[6309]: t4DEllxo006307: to=<abc.xyz@aaaa.com>, ctladdr=<oracle@mydb.oracle.com> (600/601), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120506, relay=mail1.nic.aaaa.com. [192.240.6.6], dsn=2.0.0, stat=Sent (1uc8dar1s7-1 Message accepted for delivery)

Please suggest if something I missed out or any other problem

Thanks,

Tree Cmd Is Not Working

Hi All,

Not able to find TREE command in EL6, its working fine in EL5. Need help on this.

Below are the details.



[root@localhost ~]# mkdir -p /college/sports/performer/cricket

[root@localhost ~]# tree /college/
-bash: tree: command not found

[root@localhost ~]# tree college/
-bash: tree: command not found

[root@localhost ~]# which tree
/usr/bin/which: no tree in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin: /usr/bin:/root/bin)

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Hostname Missing In CLI

Bare with the noob here

For some reason, when I open terminal, the prompt has changed from the usual user@localhost to user@xx-xx-xx-xx-xx-xx where the xx are numbers/letters, I am assuming hexadecimals?

Why?

The title bar of the terminal window still shows user@localhost:~ , HOSTNAME is still localhost.localdomain, so whats with the gibberish at the prompt?

Installed Vsftpd But Can Not Use

I have install vsftpd and start it , but when when to try it by "ftp localhost" , but not work , would advise what is wrong ? thanks


#ps -ef |grep ftp
Code:
root     29896     1  0 10:53 ?        00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root     29899 23821  0 10:53 pts/0    00:00:00 grep ftp

# ftp localhost
Code:
Connected to localhost (127.0.0.1).
421 Service not available.

Getting The Last Background Pid

Hi, I know that it is possible to get the last background pid using the $! command, however when I use it in my QT application I got a wrong result. Below follows an example where this procedure works
Code:
[linux@localhost ~]$ (sleep 6 && echo "A test") &
[1] 3312
[linux@localhost ~]$ echo $!
3312
[linux@localhost ~]$ A test

Now my Qt application, where I got a wrong result:
Code:
./dbsync &>/dev/null &
[1] 5047
[linux@localhost comm5]$ echo $!
5047

but using the ps command it is possible to verify that the pid related to the right process is not the 5047 but 5050.
Generally it is the process that comes with the command Code:
echo $!

added of two.

I use QCoreApplication in my program. I do not know if it has something to do with this error.

Any advice is welcome

Sending Mail From Command Line

I searched the forums for my title and I am not finding exactly what I am looking for. I am not using a program to send mail, such as Thunderbird or whatever. I simply want to be able to send mail from my Ubuntu 14.04 DESKTOP version for logging. I use a program called Logwatch (used alot in RHEL or CentOS) to monitor the server itself. The program sends mail to the root user account on the machine, which I can check and see, and within the program conf file, I can add an external email address, but it never sends.

I'm familiar with the SMTP concept of sending mail, outgoing mail server authentication, etc. I don't care to run this box as an SMTP server, but I understand that I need some sort of SMTP or MTA program to send mail into the real world. I tried Postfix but couldn't get that to work, and the Logwatch program wants to use sendmail, so I installed that but I am having the same issue. I am sure it is a step I am missing.

I also can't figure out how to get the 'mail' cmd from Terminal to work. I use this command:
Code:
mail -s "test" | /usr/sbin/mail myemail@domain.com

it follows through the subject, CC, body, but when I try to hit either . or CTRL-D, it never sends the email, in fact is does nothing.

I also tried sendmail with this command:
Code:
sendmail -v my@email.com < /dev/null

I was just trying to send a test email. It logs into my SMTP mail server, which I already configured, and it tells me to type out the mail, then end with a "." by itself on a single line. I try this and it just sits there.

I am missing SOMETHING when trying to actually send the mail. I can get it written with subject and body, connected, but it never sends and I am probably missing a / or something.

I did find and follow these instructions, but it still isn't working with sendmail. If I need to go back to Postfix, I can do that, I don't honestly care what I use, I just want some programs such as Logwatch to be able to email me.
http://stackoverflow.com/questions/1...mail-on-ubuntu

Forgotten/compromised Password For Localhost Username Root

hi sir.need ur help. a desktop comp is endorsed to me with Linux system. the previous user failed to give the password for localhost root and im not able to login to the system. I really need to backup the files and programs installed and afraid to reboot since our database program is installed in the pc. would really appreciate your help.ty

Minimal Centos 6.6 Wifi Can Scan And See APs But Will Not Connect To An AP

I am currently running a Minimal version of Centos 6.6 Ive searched all over the internet to see if anyone has seen this problem before. I can do a iwlist scan wlan0 and see my AP but it will not connect. I have encryption turned off. Ive tried to use a static and DHCP address in the ifcfg-wlan0 file. I used a laptop to verify that I am able to connecto to my AP and get an IP address so I know the AP is functioning properly.

any help would be appreciated.

Thanks

Running Centos 6.6 Minimal
WIadapter : ASUS USB-N13
Ive installed the following:
Wireless-tools
wpa-supplicant
dbus
r8192cu drivers
rtlwifi-firmware

********messages file has the following when I do a ifup wlan0:

[root@localhost log]# tail -f messages
Feb 10 11:46:54 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x2a6a01ee)
Feb 10 11:46:54 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:47:04 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x2a6a01ee)
Feb 10 11:47:04 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:47:14 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12 (xid=0x2a6a01ee)
Feb 10 11:47:14 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:47:26 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13 (xid=0x2a6a01ee)
Feb 10 11:47:26 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:47:39 localhost dhclient[1756]: No DHCPOFFERS received.
Feb 10 11:47:39 localhost dhclient[1756]: No working leases in persistent database - sleeping.
Feb 10 11:50:53 localhost dhclient[4075]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5 (xid=0x5128c82e)
Feb 10 11:50:58 localhost dhclient[4075]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 (xid=0x5128c82e)
Feb 10 11:51:05 localhost dhclient[4075]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20 (xid=0x5128c82e)

--------------------------------

********When I do a ip link show wlan0:

[root@localhost dispatcher.d]# ip link show wlan0
11: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether ac:9e:17:5b:9d:8d brd ff:ff:ff:ff:ff:ff

----------------------------------

*********message log when I do a iwlist wlan0 scan:

Feb 10 11:54:21 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:54:36 localhost kernel: _rtw_pwr_wakeup call ips_leave....
Feb 10 11:54:36 localhost kernel: ==>ips_leave cnts:1
Feb 10 11:54:36 localhost kernel: ===> rtw_ips_pwr_up..............
Feb 10 11:54:36 localhost kernel: ===> ips_netdrv_open.........
Feb 10 11:54:36 localhost kernel: ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
Feb 10 11:54:36 localhost kernel: FirmwareDownload92C accquire FW from embedded image
Feb 10 11:54:36 localhost kernel: fw_ver=v88, fw_subver=2, sig=0x88c0
Feb 10 11:54:36 localhost kernel: fw download ok!
Feb 10 11:54:36 localhost kernel: Set RF Chip ID to RF_6052 and RF type to 2.
Feb 10 11:54:37 localhost kernel: IQK:Start!!!
Feb 10 11:54:37 localhost kernel: Path A IQK Success!!
Feb 10 11:54:37 localhost kernel: Path B IQK Success!!
Feb 10 11:54:37 localhost kernel: Path A IQK Success!!
Feb 10 11:54:37 localhost kernel: Path B IQK Success!!
Feb 10 11:54:37 localhost kernel: IQK: final_candidate is 0
Feb 10 11:54:37 localhost kernel: IQK: RegE94=fe RegE9C=3ff RegEA4=fd RegEAC=3fa RegEB4=102 RegEBC=b RegEC4=fa RegECC=1
Feb 10 11:54:37 localhost kernel: Path A IQ Calibration Success !
Feb 10 11:54:37 localhost kernel: Path B IQ Calibration Success !
Feb 10 11:54:37 localhost kernel: pdmpriv->TxPowerTrackControl = 1
Feb 10 11:54:37 localhost kernel: rtl8192cu_hal_init in 560ms
Feb 10 11:54:37 localhost kernel: <=== rtw_ips_pwr_up.............. in 569ms
Feb 10 11:54:37 localhost kernel: ==> ips_leave.....LED(0x00028080)...
Feb 10 11:54:38 localhost kernel: survey done event(3a) band:0 for wlan0
Feb 10 11:54:40 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15 (xid=0x3d6d4ae3)
Feb 10 11:54:40 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:54:41 localhost kernel: ==>rtw_ps_processor .fw_state(0)
Feb 10 11:54:41 localhost kernel: ==>ips_enter cnts:2
Feb 10 11:54:41 localhost kernel: ===> rtw_ips_pwr_down...................
Feb 10 11:54:41 localhost kernel: ====> rtw_ips_dev_unload...
Feb 10 11:54:41 localhost kernel: usb_read_port_cancel
Feb 10 11:54:41 localhost kernel: usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Feb 10 11:54:41 localhost kernel: usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Feb 10 11:54:41 localhost kernel: usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Feb 10 11:54:41 localhost kernel: usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Feb 10 11:54:41 localhost kernel: usb_write_port_cancel
Feb 10 11:54:41 localhost kernel: ==> rtl8192cu_hal_deinit
Feb 10 11:54:41 localhost kernel: bkeepfwalive(0)
Feb 10 11:54:41 localhost kernel: card disble without HWSM...........
Feb 10 11:54:41 localhost kernel: <=== rtw_ips_pwr_down..................... in 30ms
Feb 10 11:54:55 localhost dhclient[1756]: No DHCPOFFERS received.
Feb 10 11:54:55 localhost dhclient[1756]: No working leases in persistent database - sleeping.



-----------------------------------------------------


*********output from iwlist wlan0 scan:

Cell 03 - Address: FC:8F:C4:09:49:5C
ESSID:"ANT"
Protocol:IEEE 802.11b
Mode:Master
Frequency:2.422 GHz (Channel 3)
Encryption keyff
Bit Rates:11 Mb/s
IE: Unknown: DD9E0050F204104A0001101044000102103B0001031047001063041253101920061228FC8FC409495C1021001B5265616C74 656B2053656D69636F6E647563746F7220436F72702E1023000752544C387878781024000D45562D323031302D30392D3230 1042000F3132333435363738393031323334371054000800060050F20400011011000952544B5F41505F3278100800022688 1049000600372A000120
Quality=48/100 Signal level=91/100


---------------------------------------------------------

*******ifcfg-wlan0 ... please note you will see a bunch of #'s just trying different configs:

TYPE=Wireless
DEVICE=wlan0
ESSID=ANT
MODE=Managed
#MODE=Auto
#TYPE=Ethernet
NM_CONTROLLED=no
BOOTPROTO=dhcp
BROADCAST=192.168.100.255
NETMASK=255.255.255.0
IPADDR=192.168.100.10
NETMASK=255.255.255.0
#PREFIX=24
GATEWAY=192.168.100.1
RATE=auto
SECURITYMODE=off
RTS=auto
FRAG=auto
#DEFROUTE=yes
#IPV4_FAILURE_FATAL=yes
#IPV6INIT=no
#NAME=wlan0
UUID=3c9clabd-3ce0-4aea-304a-bf243b69e989
ONBOOT=no
ONHOTPLUG=yes
HWADDR=AC:9E:17:5B:9D:8D
PEERDNS=no
#PEERROUTES=yes

Changing Cursor Color In Gedit

Hi, I am working with scientific linux 4 with specification Linux localhost.localdomain 2.6.9-67.EL.cernsmp #1 SMP Wed Nov 21 16:22:33 CET 2007 i686 i686 i386 GNU/Linux. How can I change my cursor color from black to green in gedit. thanks in advance.

Biplab Bijay