Quote:
|
Hi again,
Sorry >.< hmm there's a part about SASL file, we have to set passwords for it. How to get into the file? Is it: Code:
/etc/postfix/sasl Code:
SASL |
Hello again,
i've done configuring postfix to work with Gmail from the help of this http://prantran.blogspot.com/2007/01...untu-with.html But still, i don't receive emails. I went to take a look at mailq, i got: Code:
B2FEB43535 2383 Mon Aug 2 11:09:02 MAILER-DAEMON Code:
Aug 1 08:33:50 ubuntu postfix/error[31385]: 5864D4296E: to=<xanios91@gmail.com>, relay=none, delay=239884, delays=239864/20/0/0.02, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again) This is my /etc/postfix/main.cf: Code:
xanios@ubuntu:~$ postconf -n What's wrong? I'm confused X_X |
Can you turn off DNS lookups and see if the error goes. I used Zimbra, which in turn uses postfix, for sometime and disabling DNS lookups can sometime help.
|
Hi,
i added Code:
disable_dns_lookups = yes Still the same result. Code:
BCC5F42281 2407 Sat Jul 31 10:53:32 MAILER-DAEMON /etc/postfix/main.cf: Code:
xanios@ubuntu:~$ postconf -n |
Hello Xanios and good morning (at least here in Spain it is),
You're not sending to GMail apparently. From your main.cf: Code:
mydestination = $myhostname, $mydomain, localhost.localdomain, localhost Code:
mydestination = smtp.gmail.com, localhost, srvnagios.ourdomain.es Code:
sudo /etc/init.d/postfix restart PS: there might be already thousands of mails from Nagios in the queue so if you don't want to get blocked by GMail or your ISP for 'spamming', it's good practice to empty the queues first using: Code:
sudo postsuper -d ALL Kind regards, Eric |
You do not have MX record for your domain set properly pointing to the mail server. You first need a A record set in your DNS and then add MX record pointing to the A record.
So in short you need a proper DNS server setup for it. |
Hello Eric and good afternoon (here it is noon already haha :P)
I did as what you said and have added smtp.gmail.com in mydestination And also emptied the queue. Now queue is empty i tried to send a mail to my gmail: Code:
xanios@ubuntu:~$ mail -s "test mail" -v xanios@gmail.com |
Quote:
I don't really understand. DNS server? x_x But i don't the server |
Quote:
Check your log /var/log/messages to see if the mail got sent right away or deferred. Kind regards, Eric |
Hi Eric,
is this the right command?: Code:
sudo vi /var/log/mail.log Because my log first started with Aug 1, and i have to scroll all the way down :X |
I have not worked with postfix much, but it needs a valid MX record as per my knowledge. Only time I worked with postfix was when I installed Zimbra. And it worked flawlessly with the same configuration as you are trying to do. I was also relaying messages using external SMTP server from Go Daddy where we had email accounts hosted for the domain.
|
Quote:
Postfix seems so hard ): |
Quote:
Vi is an editor and you just want to 'view' the log file. You can use for example: Code:
less /var/log/messages Code:
tail -n 100 /var/log/messages Kind regards, Eric |
Hi,
i used tail -n 100 /var/log/messages which gives me: Code:
xanios@ubuntu:~$ tail -n 100 /var/log/messages Code:
tail -n 100 /var/log/mail.log Code:
xanios@ubuntu:~$ tail -n 100 /var/log/mail.log |
All times are GMT -5. The time now is 08:51 AM. |