LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Postfix (https://www.linuxquestions.org/questions/linux-newbie-8/postfix-823443/)

Xanios 08-01-2010 08:14 PM

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

Xanios 08-01-2010 08:21 PM

[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?


All times are GMT -5. The time now is 05:50 PM.