-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 02 Dec 2012 13:15:01 Bill Thoen wrote: > On 01-Dec-12 12:30 PM, James Bertelson wrote: >>> On Sat, Dec 1, 2012 at 10:26 AM, Bill Thoen<[email protected]> >>> wrote: >>>>> Hello folks, >>>>> >>>>> I'm setting up a new CentOS 64-bit machine and have nearly >>>>> got mail working, except I can't send mail to myself from >>>>> outside the LAN it's on. When I try I get this error >>>>> message: >>>>> >>>>> "An error occurred while sending mail. The mail server >>>>> responded: 5.1.1 <[email protected]>: Recipient >>>>> address rejected: User unknown in virtual alias table. >>>>> Please check the message recipient [email protected] >>>>> and try again." >>>>> >>>>> I can send mail from that address, no problem. I'm using >>>>> the latest Dovecot and Postfix. I've tried setting an alias >>>>> in etc/aliases like so: bthoen: [email protected] >>>>> >>>>> and pointing local_recipient_maps in main.cf at it. I also >>>>> tried leaving that empty. Also did 'service postfix >>>>> restart' and 'service dovecot restart' whenever I disturbed >>>>> their config files. >>>>> >>>>> The log says that dovecot connects and disconnects OK, but >>>>> I'm so new to this end of the business that I probably >>>>> don't see half of what I should notice. Here's the last few >>>>> log entries as I tried to login via Thunderbird: >>>>> >>>>> Dec 1 10:16:02 oneimage dovecot: IMAP(bthoen): >>>>> Disconnected: Logged out Dec 1 10:51:48 oneimage dovecot: >>>>> imap-login: Login: user=<bthoen>, method=PLAIN, >>>>> rip=::ffff:72.251.11.78, lip=::ffff:192.231.196.244, TLS >>>>> Dec 1 10:51:48 oneimage dovecot: IMAP(bthoen): Effective >>>>> uid=500, gid=500, home=/home/bthoen Dec 1 10:51:48 >>>>> oneimage dovecot: IMAP(bthoen): maildir: >>>>> data=/home/bthoen/Maildir Dec 1 10:51:48 oneimage dovecot: >>>>> IMAP(bthoen): maildir: root=/home/bthoen/Maildir, >>>>> index=/home/bthoen/Maildir, control=, inbox= >>>>> >>>>> I've read lots of article on Dovecot, Postfix and related >>>>> from Googlets -- not understanding a lot of it. And I don't >>>>> know what would be relevant to display here for help. This >>>>> is probably dead simple to an experienced sysadmin, but my >>>>> experienced SA got a real job in another state and is no >>>>> longer as free to freelance as before. So I have to learn >>>>> enough to make this work in the short term, and hopefully >>>>> more will sink in in the long run. >>>>> >>>>> Any help, references to articles, or requests for some >>>>> information to diagnose what's wrong would be much >>>>> appreciated. >>>>> >>>>> TIA, Bill Thoen >>> Bill, >>> >>> It sounds like Postfix doesn't know it's supposed to accept >>> mail for your domain. Make sure that visualfarms.com is in the >>> mydestination= line in main.cf and restart the service if you >>> have to add it. If that doesn't work, it might be helpful to >>> see the whole main.cf (you can obfuscate anything you don't >>> want to share, though I can't think of anything in there that >>> would be sensitive.) > Sorry, I tried to send the main.cf file yesterday, but it exceeds > this forum's limits for a single message. So I'm posting main.cf > with only the settings as I have them. This is followed by a more > precise log of events. I'll start looking into Postfix a little > more carefullly and see if I can spot (and recognize) the error. > But Postfix must be working somewhat at least because messaghes > sent locally do get delivered correctly. I still need some help. > > *main.cf reduced in size by removing excess comments:*
<snip> > If I'm logged on locally, it works perfectly. * Dec 2 12:54:53 > oneimage postfix/pickup[2374]: 5562577F80A2: uid=500 from=<bthoen> > Dec 2 12:54:53 oneimage postfix/cleanup[2423]: 5562577F80A2: > message-id=<[email protected]> Dec > 2 12:54:53 oneimage postfix/qmgr[23504]: 5562577F80A2: > from=<[email protected]>, size=331, nrcpt=1 (queue active) Dec > 2 12:54:53 oneimage postfix/local[2425]: 5562577F80A2: > to=<[email protected]>, relay=local, delay=0.04, > delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to > mailbox) Dec 2 12:54:53 oneimage postfix/qmgr[23504]: > 5562577F80A2: removed > > *When I try to send myself a message from a machine on a different > network, it doesn't know me.* Dec 2 12:37:15 www > postfix/smtpd[29287]: Anonymous TLS connection established from > node63. 8.251.72.1dial.com[72.251.8.63]: TLSv1 with cipher > DHE-RSA-CAMELLIA256-SHA (256/256 bits) Dec 2 12:37:17 www > postfix/smtpd[29287]: NOQUEUE: reject: RCPT from > node63.8.251.72.1dial. com[72.251.8.63]: 550 5.1.1 > <[email protected]>: Recipient address rejected: User unkn own > in virtual alias table; from=<[email protected]> > to=<[email protected]> proto=ESMT P helo=<[72.251.8.63]> Dec > 2 12:37:40 www postfix/smtpd[29287]: disconnect from > node63.8.251.72.1dial.com[72.251. 8.63] Did you run the newaliases command after you updated main.cf? I didn't see that in the thread, and it is needed after updating Postfix aliases. HTH, Robert -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlC8GbUACgkQ+qYMIUkNJCz3IACeOcLhORKCVIbbAECOWYE+wy89 izsAoJZiSxq3pIJI+azQ7h6rlVJBxa7N =yhiD -----END PGP SIGNATURE----- _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
