LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 30
Postfix


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:

Code:
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/main.cf:

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

Code:
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 main.cf, 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
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
[EDITED]

i tried this command instead:

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

Code:
Aug  1 07:55:35 ubuntu postfix/smtp[11893]: CF65F44585: to=<xanios@gmail.com>, 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 name=gmail.com 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=<root@ubuntu.com>, size=435, nrcpt=1 (queue active)
Aug  1 07:55:43 ubuntu postfix/error[13049]: 615464458E: to=<root@ubuntu.com>, 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 name=ubuntu.com type=MX: Host not found, try again)
Aug  1 07:55:44 ubuntu postfix/smtp[11901]: 5326C4458B: to=<xanios@gmail.com>, 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 name=gmail.com type=MX: Host not found, try again)
i saw this email: xanios@gmail.com, i think i configured it somewhere in the file..do i have to change it other email in order to just let it send to localhost?
 
  


Reply


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


All times are GMT -5. The time now is 04:31 AM.

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