Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-01-2010, 09:14 PM   #1
Registered: Jul 2010
Posts: 216

Rep: Reputation: 30

Hello. Could someone check this for me? I tried to send mail to localhost (ubuntu server) but when i tried to view it in log file, it gave me this:

xanios@ubuntu:~$ tail -f /var/log/mail
tail: cannot open `/var/log/mail' for reading: No such file or directory
tail: no files remaining
in my /etc/postfix/

myhostname = ubuntu
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, $mydomain, localhost.localdomain, localhost
relayhost =
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
myorigin = /etc/mailname
inet_protocols = ipv4
I tried to test if postfix is working by sending a test mail:

xanios@ubuntu:~$ mail -s "test mail" -v xanios@localhost
i'm not sure if xanios@localhost used is correct.. i want to send to localhost to see if i can receive the mail, if it does then my postfix should be working, am i right to say that?

As seen above in, my ubuntu server hostname is ubuntu. So for the emailID (xanios@localhost) should i write as ubuntu? Or ?

Sorry if i sounded confusing. =S

p/s: i'm using ubuntu 9.10

Last edited by Xanios; 08-01-2010 at 09:16 PM.
Old 08-01-2010, 09:21 PM   #2
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30

i tried this command instead:

sudo vi /var/log/mail.log
And i managed to go into the mail log file:

Aug  1 07:55:35 ubuntu postfix/smtp[11893]: CF65F44585: to=<>, relay=none, delay=21, delays=0.76/0.05/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for type=MX: Host not found, try again)
Aug  1 07:55:43 ubuntu postfix/pickup[24682]: 615464458E: uid=0 from=<root>
Aug  1 07:55:43 ubuntu postfix/cleanup[11899]: 615464458E: message-id=<20100801145543.615464458E@ubuntu>
Aug  1 07:55:43 ubuntu postfix/qmgr[2518]: 615464458E: from=<>, size=435, nrcpt=1 (queue active)
Aug  1 07:55:43 ubuntu postfix/error[13049]: 615464458E: to=<>, orig_to=<root>, relay=none, delay=0.23, delays=0.16/0.05/0/0.02, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for type=MX: Host not found, try again)
Aug  1 07:55:44 ubuntu postfix/smtp[11901]: 5326C4458B: to=<>, relay=none, delay=21, delays=0.49/0/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for type=MX: Host not found, try again)
i saw this email:, i think i configured it somewhere in the i have to change it other email in order to just let it send to localhost?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make postfix send email to another postfix in local network (LAN)? h4k33m Linux - Server 9 06-04-2015 05:33 PM
SYSadmin installed postfix, now sendmail sends to qmail not postfix. Why? pablocullen Linux - Server 1 11-18-2009 05:53 PM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 01:21 PM
Postfix error: /usr/lib/postfix/smtpd pid 7529 exit status 1 Chiragrs Linux - Networking 7 05-16-2008 01:42 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 05:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration