View Single Post
  #27  
Old 5th January 2012, 04:00
m.xander m.xander is offline
Member
 
Join Date: Dec 2011
Posts: 81
Thanks: 5
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by cbj4074 View Post
Yes, that's fine, in fact it is preferable. I always leave the hosting-provider-assigned hostname as the primary hostname, in case anything unexpected should happen with the vanity domain's DNS records.

Okay, I think I see the problem here. Tempted to "LOL"...

As I mentioned in a previous post, Postfix will complain if a given domain is used for both myhostname and mydestination in Postfix's main.cf. Now that you have removed the VPS hostname from the mydestination directive, you need to add the mail domain 25612-21212.vps.digitalpacific.com.au via the ISPConfig interface and create a mailbox or a catch-all for it.

The part I failed to realize is that you are attempting to send mail to @25612-21212.vps.digitalpacific.com.au, and not @urbancampsite.com, as evidenced by this excerpt from your log file:

Code:
to=<root@25612-21212.vps.digitalpacific.com.au>
To be clear, I think you had two different problems that were "stacking-up". We resolved one of them, but then you changed the test-case (not your fault), which made the second problem harder to spot.

Try making the above change and then report back when you have a chance.
OK... In ISPConfig I've made a new domain 25612-21212.vps.digitalpacific.com.au and then in Email added a new mailbox root@25612-21212.vps.digitalpacific.com.au

then tried sending from test@urbancampsite.com and repeated the tail command...

Code:
root@25612-21212:~# tail -f -n 30 /var/log/mail.log
Jan  5 13:15:01 25612-21212 postfix/smtpd[7945]: connect from localhost.localdomain[127.0.0.1]
Jan  5 13:15:01 25612-21212 postfix/smtpd[7945]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jan  5 13:15:01 25612-21212 postfix/smtpd[7945]: disconnect from localhost.localdomain[127.0.0.1]
Jan  5 13:20:02 25612-21212 postfix/pickup[5411]: 061A9C76097F: uid=103 from=<smmsp>
Jan  5 13:20:02 25612-21212 pop3d: Connection, ip=[::ffff:127.0.0.1]
Jan  5 13:20:02 25612-21212 pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jan  5 13:20:02 25612-21212 imapd: Connection, ip=[::ffff:127.0.0.1]
Jan  5 13:20:02 25612-21212 imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jan  5 13:20:02 25612-21212 postfix/cleanup[8036]: 061A9C76097F: message-id=<20120105022002.061A9C76097F@25612-21212.vps.digitalpacific.com.au>
Jan  5 13:20:02 25612-21212 postfix/qmgr[31819]: 061A9C76097F: from=<smmsp@25612-21212.vps.digitalpacific.com.au>, size=779, nrcpt=1 (queue active)
Jan  5 13:20:02 25612-21212 postfix/smtpd[8046]: connect from localhost.localdomain[127.0.0.1]
Jan  5 13:20:02 25612-21212 postfix/smtpd[8046]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jan  5 13:20:02 25612-21212 postfix/smtpd[8046]: disconnect from localhost.localdomain[127.0.0.1]
Jan  5 13:20:02 25612-21212 postfix/smtpd[8072]: connect from localhost.localdomain[127.0.0.1]
Jan  5 13:20:02 25612-21212 postfix/smtpd[8072]: 728ADC760869: client=localhost.localdomain[127.0.0.1]
Jan  5 13:20:02 25612-21212 postfix/cleanup[8036]: 728ADC760869: message-id=<20120105022002.061A9C76097F@25612-21212.vps.digitalpacific.com.au>
Jan  5 13:20:02 25612-21212 postfix/smtpd[8072]: disconnect from localhost.localdomain[127.0.0.1]
Jan  5 13:20:02 25612-21212 postfix/qmgr[31819]: 728ADC760869: from=<smmsp@25612-21212.vps.digitalpacific.com.au>, size=1587, nrcpt=1 (queue active)
Jan  5 13:20:02 25612-21212 amavis[27704]: (27704-10) Passed CLEAN, <smmsp@25612-21212.vps.digitalpacific.com.au> -> <root@25612-21212.vps.digitalpacific.com.au>, Message-ID: <20120105022002.061A9C76097F@25612-21212.vps.digitalpacific.com.au>, mail_id: b1HkB84+Y2NQ, Hits: 1.178, size: 779, queued_as: 728ADC760869, 428 ms
Jan  5 13:20:02 25612-21212 postfix/smtp[8050]: 061A9C76097F: to=<root@25612-21212.vps.digitalpacific.com.au>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.49, delays=0.05/0.01/0/0.43, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=27704-10, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 728ADC760869)
Jan  5 13:20:02 25612-21212 postfix/qmgr[31819]: 061A9C76097F: removed
Jan  5 13:20:02 25612-21212 postfix/pipe[8073]: 728ADC760869: to=<root@25612-21212.vps.digitalpacific.com.au>, relay=maildrop, delay=0.03, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered via maildrop service)
Jan  5 13:20:02 25612-21212 postfix/qmgr[31819]: 728ADC760869: removed
Jan  5 13:25:01 25612-21212 pop3d: Connection, ip=[::ffff:127.0.0.1]
Jan  5 13:25:01 25612-21212 pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jan  5 13:25:01 25612-21212 imapd: Connection, ip=[::ffff:127.0.0.1]
Jan  5 13:25:01 25612-21212 imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jan  5 13:25:01 25612-21212 postfix/smtpd[8147]: connect from localhost.localdomain[127.0.0.1]
Jan  5 13:25:01 25612-21212 postfix/smtpd[8147]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jan  5 13:25:01 25612-21212 postfix/smtpd[8147]: disconnect from localhost.localdomain[127.0.0.1]
Alot of this looks like a foreign language to me... but I was expecting to see the email address test@urbancampsite.com somewhere in the output...?

Then in addition to that the test@urbancampsite.com received an email

From: Cron Daemon <root@25612-21212.vps.digitalpacific.com.au>
To: root@25612-21212.vps.digitalpacific.com.au
Subject: ***SPAM***Cron <smmsp@25612-21212> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
Date: Thu, 5 Jan 2012 06:00:02 +1100 (EST) (05/01/12 05:00:02)
Message:
/usr/share/sendmail/sendmail: line 880: /usr/sbin/sendmail-msp: No such file or directory

???
Reply With Quote