Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set up an email server with postfix/cyrus
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Tue Apr 19, 2011 2:37 am    Post subject: Reply with quote

The lmtp socket is there.

Interesting... couldn't stop cyrus and all I got was the red !!, no further explanation.

The files you suggested I rm didn't exist to begin with.

EDIT: Yes, they do. I moved the db dir earlier while poking around at stuff and didn't move it back. I moved it back, but before and after rm'ing those files, it continued not to let me in.

I did reboot my server with cyrus out of the default runlevel as a way of getting it to stop. Now it stops and starts when I tell it to.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Apr 19, 2011 2:53 am    Post subject: Reply with quote

ok, with those db files out of the way, once you restart cyrus, they should be recreated

the login issue - a concern, but less of an immediate concern
first and foremost i want to get rid of the 'timed out waiting for server greeting' issue on the lmtp connection

you can force a retry with 'postfix flush', then check out the logs to see if lmtp is still giving us grief

if it is, time for thinking cap.
if not, it narrows the issue down to simply the login failure

this just stinks of something somewhere being corrupted. The good news, once everything is set up with cyrus and oprational, you just rarely if ever have to touch it. Normal operation, the db files and whatnot just dont get corrupted (I'm at ~2 years on my current install without having to touch it).

Just the headache getting things going at the beginning.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Tue Apr 19, 2011 1:32 pm    Post subject: Reply with quote

OK, did a flush, moved mail.log and mail.warn to backup files (to make it easier to see new entries), reloaded and restarted postfix, even restarted the server, but now all I can see is postfix starting normally. Nothing at all appears in the logs about my login failure.

I think what I'll do when I'm properly awake is re-do the postfix/cyrus install from scratch, reading both the how-to and this thread carefully. Somewhere between my doing that and your sporting a stylish thinkin' cap, we'll figure it out.

Are you sure the password in MySQL should be plain text? Nothing gets hashed somewhere?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Apr 19, 2011 8:07 pm    Post subject: Reply with quote

audiodef wrote:

I think what I'll do when I'm properly awake is re-do the postfix/cyrus install from scratch, reading both the how-to and this thread carefully. Somewhere between my doing that and your sporting a stylish thinkin' cap, we'll figure it out.


Shouldn't need to do that. If anything, uninstalling cyrus, nuking any leftover files (except for config files), reinstalling cyrus, should do the trick.

Whatever you do, im convinced now your main.cf is fine, so don't lose that - that's where you do most of your work anyway. But hopefully it won't come to that.

Your logs should in fact be fairly empty, unless you're doing a good bit of inbound SMTP traffic. I Just sent a test message through to webmaster from 'apr19test', if that ended up where it's supposed to end up, then all that's left is the login issue for the imap side.

audiodef wrote:

Are you sure the password in MySQL should be plain text? Nothing gets hashed somewhere?


yessir. Unfortunately not every piece of this puzzle can work with encrypted entries in a DB, so we either have to maintain multiple DB's or just shuck crypto.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Tue Apr 19, 2011 9:10 pm    Post subject: Reply with quote

I'm already getting spam! Jeebus. And maybe something else might be wrong, too. I'm reading "over quota" in the log:

Code:

Apr 19 06:43:01 serverdef postfix/trivial-rewrite[24033]: warning: do not list domain audiodef.com in BOTH mydestination and virtual_mailbox_domains
Apr 19 06:43:01 serverdef postfix/lmtp[24036]: DAA9C50CDC: to=<damien@audiodef.com>, relay=audiodef.com[/var/imap/socket/lmtp], delay=2225, delays=2225/0.01/0.02/0.01, dsn=4.2.2, status=deferred (host audiodef.com[/var/imap/socket/lmtp] said: 452 4.2.2 Over quota (in reply to RCPT TO command))
Apr 19 06:46:18 serverdef postfix/smtpd[24199]: warning: queue_minfree(150000000) should be at least 1.5*message_size_limit(102400000)
Apr 19 06:46:19 serverdef postfix/smtpd[24199]: warning: 190.25.27.105: hostname adsl190-2527105.dyn.etb.net.co verification failed: Name or service not known
Apr 19 06:46:19 serverdef postfix/smtpd[24199]: connect from unknown[190.25.27.105]
Apr 19 06:46:20 serverdef postfix/trivial-rewrite[24201]: warning: do not list domain audiodef.com in BOTH mydestination and virtual_mailbox_domains
Apr 19 06:46:20 serverdef postfix/smtpd[24199]: NOQUEUE: reject: RCPT from unknown[190.25.27.105]: 550 5.1.1 <jmoore@audiodef.com>: Recipient address rejected: User unknown in local recipient table; from=<hshbly@abraca.org> to=<jmoore@audiodef.com> proto=ESMTP helo=<adsl190-2527105.dyn.etb.net.co>
Apr 19 06:46:20 serverdef postfix/smtpd[24199]: lost connection after RCPT from unknown[190.25.27.105]
Apr 19 06:46:20 serverdef postfix/smtpd[24199]: disconnect from unknown[190.25.27.105]
Apr 19 06:49:40 serverdef postfix/anvil[24200]: statistics: max connection rate 1/60s for (smtp:190.25.27.105) at Apr 19 06:46:19
Apr 19 06:49:40 serverdef postfix/anvil[24200]: statistics: max connection count 1 for (smtp:190.25.27.105) at Apr 19 06:46:19
Apr 19 06:49:40 serverdef postfix/anvil[24200]: statistics: max cache size 1 at Apr 19 06:46:19
Apr 19 06:58:01 serverdef postfix/qmgr[4694]: 48AC915A15: from=<Patty_@dentygret.info>, size=14808, nrcpt=1 (queue active)
Apr 19 06:58:01 serverdef postfix/trivial-rewrite[24784]: warning: do not list domain audiodef.com in BOTH mydestination and virtual_mailbox_domains
Apr 19 06:58:01 serverdef postfix/lmtp[24787]: 48AC915A15: to=<damien@audiodef.com>, relay=audiodef.com[/var/imap/socket/lmtp], delay=21499, delays=21499/0.01/0.02/0.01, dsn=4.2.2, status=deferred (host audiodef.com[/var/imap/socket/lmtp] said: 452 4.2.2 Over quota (in reply to RCPT TO command))
Apr 19 07:03:01 serverdef postfix/qmgr[4694]: DBDB950C81: from=<JewelMint-DesignerJewelrywvf@beautifulowner.info>, size=7965, nrcpt=1 (queue active)
Apr 19 07:03:01 serverdef postfix/trivial-rewrite[25050]: warning: do not list domain audiodef.com in BOTH mydestination and virtual_mailbox_domains
Apr 19 07:03:01 serverdef postfix/qmgr[4694]: D5D87159E2: from=<better2011_@iterstabic.info>, size=25748, nrcpt=1 (queue active)
Apr 19 07:03:01 serverdef postfix/trivial-rewrite[25050]: warning: do not list domain audiodef.com in BOTH mydestination and virtual_mailbox_domains
Apr 19 07:03:01 serverdef postfix/qmgr[4694]: 09EF150CDA: from=<Customer.Care@Apps.JobServe.com>, size=6603, nrcpt=1 (queue active)
Apr 19 07:03:01 serverdef postfix/trivial-rewrite[25050]: warning: do not list domain audiodef.com in BOTH mydestination and virtual_mailbox_domains
Apr 19 07:03:01 serverdef postfix/qmgr[4694]: A85E150CDB: from=<work_at_home@bautacraye.info>, size=12388, nrcpt=1 (queue active)
Apr 19 07:03:01 serverdef postfix/trivial-rewrite[25050]: warning: do not list domain audiodef.com in BOTH mydestination and virtual_mailbox_domains
Apr 19 07:03:01 serverdef postfix/lmtp[25054]: DBDB950C81: to=<damien@audiodef.com>, relay=audiodef.com[/var/imap/socket/lmtp], delay=17277, delays=17277/0.01/0.02/0.01, dsn=4.2.2, status=deferred (host audiodef.com[/var/imap/socket/lmtp] said: 452 4.2.2 Over quota (in reply to RCPT TO command))
Apr 19 07:03:01 serverdef postfix/lmtp[25056]: D5D87159E2: to=<damien@audiodef.com>, relay=audiodef.com[/var/imap/socket/lmtp], delay=21421, delays=21421/0.01/0.02/0, dsn=4.2.2, status=deferred (host audiodef.com[/var/imap/socket/lmtp] said: 452 4.2.2 Over quota (in reply to RCPT TO command))
Apr 19 07:03:01 serverdef postfix/lmtp[25056]: A85E150CDB: to=<damien@audiodef.com>, relay=audiodef.com[/var/imap/socket/lmtp], delay=8728, delays=8728/0.04/0.01/0, dsn=4.2.2, status=deferred (host audiodef.com[/var/imap/socket/lmtp] said: 452 4.2.2 Over quota (in reply to RCPT TO command))
Apr 19 07:03:01 serverdef postfix/lmtp[25054]: 09EF150CDA: to=<damien@audiodef.com>, relay=audiodef.com[/var/imap/socket/lmtp], delay=8866, delays=8866/0.04/0.01/0, dsn=4.2.2, status=deferred (host audiodef.com[/var/imap/socket/lmtp] said: 452 4.2.2 Over quota (in reply to RCPT TO command))
Apr 19 07:06:21 serverdef postfix/scache[25063]: statistics: start interval Apr 19 07:03:01
Apr 19 07:06:21 serverdef postfix/scache[25063]: statistics: address lookup hits=0 miss=2 success=0%
Apr 19 07:06:21 serverdef postfix/scache[25063]: statistics: max simultaneous domains=0 addresses=1 connection=2
Apr 19 07:08:01 serverdef postfix/qmgr[4694]: F1DA615A7B: from=<lowrates_@wuffloket.info>, size=33926, nrcpt=1 (queue active)
Apr 19 07:08:01 serverdef postfix/trivial-rewrite[1664]: warning: do not list domain audiodef.com in BOTH mydestination and virtual_mailbox_domains


Login still fails after re-installing cyrus.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Apr 19, 2011 10:04 pm    Post subject: Reply with quote

out of curiousity:

Code:

ls /var/imap/domain


far as the spam goes, adding those RBL's to the mix should take care of the bulk of it. One thing at a time i suppose
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Tue Apr 19, 2011 10:17 pm    Post subject: Reply with quote

cach0rr0 wrote:
out of curiousity:

Code:

ls /var/imap/domain




No such file or dir... should there be?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Apr 19, 2011 10:23 pm    Post subject: Reply with quote

no that's fine. that means no mailboxes have been autocreated yet, that's what i was looking to check.

so let's do this:
Code:

/etc/init.d/cyrus stop
/etc/init.d/postfix stop
emerge -C cyrus-imapd
rm -rf /var/imap
rm -rf /var/spool/imap
emerge cyrus-imapd #with autocreate patch enabled via USE of course
/etc/init.d/cyrus start
/etc/init.d/postfix start


also, just in case this is throwing anything off and corrupting our mailbox databases somehow, in main.cf, that setting for mydestination, double check and make sure $mydomain is not in the list (it should only be $myhostname and localhost, assuming $myhostname is set to something other than 'audiodef.com' - I'd figured it was set to 'serverdef.audiodef.com')

give that a go, im going to try and break my setup and shed some light right quick.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Tue Apr 19, 2011 10:57 pm    Post subject: Reply with quote

cach0rr0 wrote:
no that's fine. that means no mailboxes have been autocreated yet, that's what i was looking to check.


Gotcha.

cach0rr0 wrote:

so let's do this:
Code:

/etc/init.d/cyrus stop
/etc/init.d/postfix stop
emerge -C cyrus-imapd
rm -rf /var/imap
rm -rf /var/spool/imap
emerge cyrus-imapd #with autocreate patch enabled via USE of course
/etc/init.d/cyrus start
/etc/init.d/postfix start



Check. Still not.

cach0rr0 wrote:

also, just in case this is throwing anything off and corrupting our mailbox databases somehow, in main.cf, that setting for mydestination, double check and make sure $mydomain is not in the list (it should only be $myhostname and localhost, assuming $myhostname is set to something other than 'audiodef.com' - I'd figured it was set to 'serverdef.audiodef.com')


Check. It was set to audiodef.com, but I tried serverdef.audiodef.com - no difference. Still can't login to check email on webmaster.

cach0rr0 wrote:

give that a go, im going to try and break my setup and shed some light right quick.


I'm going to grab some chow and check back in a bit.

I've also asked Mark at vr.org if there was anything that could be stopping things in a new server's default set up. He said no, but he offered to take a look, which is nice because they state in their FAQ that it's not what they do. I'm taking him up on that.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Apr 19, 2011 11:02 pm    Post subject: Reply with quote

audiodef wrote:

Check. Still not.


are you still getting the quota error? Different error in the logs?

The 'unable to login' is a separate, final piece to this.
One which we'll cover off as soon as Postfix is routing things to Cyrus successfully via lmtp, mailboxes are being autocreated, etc.
The login piece may be as simple as updating the SQL query to adjust to some change in the cyrus auxprop mechanism - but until we have mail flowing/routing/etc no point in covering off the login.

Soon as the guys from work stop bothering me I'm going to go through the entire install on a spare box and see what i can find.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Apr 20, 2011 12:08 am    Post subject: Reply with quote

ok, i can repro the login failure error
However, on a brand new virgin install, the lmtp routing is fine.

I'm going to keep digging, there are some changes we're going to have to make and I'm sorting out exactly which ones.

stay tuned

EDIT: bingo

cyrus-sasl for me was built without mysql support
and upon login, i was getting these errors in auth.log

Code:

_sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb


I set up my package.use like so, and re-emerged cyrus-sasl:

Code:

# cat /etc/portage/package.use/sasl
dev-libs/cyrus-sasl berkdb crypt gdbm pam ssl mysql


Restarted postfix, restarted cyrus.

Code:


ricker log # telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS AUTH=LOGIN AUTH=PLAIN SASL-IR COMPRESS=DEFLATE] ricker.whitehathouston.com Cyrus IMAP v2.3.16 server ready
01 login webmaster@audiodef.com password
01 OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED COMPRESS=DEFLATE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE SCAN IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE URLAUTH] User logged in
02 logout
* BYE LOGOUT received
02 OK Completed
Connection closed by foreign host.


I'll update the doc for this.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash


Last edited by cach0rr0 on Wed Apr 20, 2011 1:15 am; edited 1 time in total
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Apr 20, 2011 12:21 am    Post subject: Reply with quote

also, FYI, this is the main.cf I'm using:

Code:

queue_directory = /var/spool/postfix
message_size_limit = 102400000
mailbox_size_limit = 1024000000
command_directory = /usr/sbin
daemon_directory = /usr/lib64/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
default_privs = nobody
myhostname = serverdef.audiodef.com
mydomain = audiodef.com
virtual_mailbox_domains = audiodef.com
myorigin = $myhostname
alias_maps = mysql:/etc/postfix/validate.cf
virtual_mailbox_maps = mysql:/etc/postfix/validate.cf
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
virtual_transport = lmtp:unix:/var/imap/socket/lmtp
inet_interfaces = all
mydestination = $myhostname, localhost
local_recipient_maps = $alias_maps, $virtual_mailbox_maps
unknown_local_recipient_reject_code = 550
mynetworks = 75.148.243.88/29, 127.0.0.0/8
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes
smtpd_tls_auth_only = yes
mail_spool_directory = /var/spool/mail
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 20
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
smtpd_tls_security_level = may
smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
smtpd_tls_key_file = /etc/ssl/postfix/server.key
smtpd_tls_ask_ccert = no
smtpd_tls_loglevel = 1
smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unauth_destination
biff = no
empty_address_recipient = MAILER-DAEMON
tls_random_source = dev:/dev/urandom
smtp_tls_note_starttls_offer = yes
readme_directory = no
sample_directory = /etc/postfix
html_directory = no
manpage_directory = /usr/local/man


I guess the only other thing worth noting, which is completely unrelated to this, I omitted queue_minfree, since Postfix has a sensible default for that set already if you leave it out. Doc updating accordingly.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Apr 20, 2011 1:32 am    Post subject: Reply with quote

Spotted another error that will cause authenticated SMTP relay to fail

/etc/sasl2/smtpd.conf

remove the extra quotes around the '@' sign
e.g. change
Code:

sql_select: SELECT plainpass FROM aliases WHERE email = '%u'@'%r'


to

Code:

sql_select: SELECT plainpass FROM aliases WHERE email = '%u@%r'


the rest of the guide is devoid of this mistake

So at the moment I've tested:
-lmtp communication between postfix and cyrus is successful
-autocreate is working fine as a result of the above
-login to IMAP is no longer failing now that I've built cyrus-sasl with 'mysql' USE enabled
-authenticated SMTP relay ("ESMTP auth") is now working, after correcting the typo in /etc/sasl2/smtpd.conf
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 2:14 am    Post subject: Reply with quote

I think I found the problem:

Code:


Apr 19 12:11:49 serverdef imaps[3517]: sql auxprop plugin using mysql engine
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin Parse the username webmaster
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin try and connect to a host
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin trying to open db 'maildb' on host 'localhost'
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin Parse the username webmaster
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin try and connect to a host
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin trying to open db 'maildb' on host 'localhost'
Apr 19 12:11:49 serverdef imaps[3517]: begin transaction
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin create statement from userPassword webmaster serverdef
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin doing query SELECT plainpass FROM aliases WHERE email = 'webmaster@serverdef';
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin: no result found
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin create statement from cmusaslsecretPLAIN webmaster serverdef
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin doing query SELECT plainpass FROM aliases WHERE email = 'webmaster@serverdef';
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin: no result found
Apr 19 12:11:49 serverdef imaps[3517]: commit transaction
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin Parse the username webmaster
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin try and connect to a host
Apr 19 12:11:49 serverdef imaps[3517]: sql plugin trying to open db 'maildb' on host 'localhost'
Apr 19 12:11:52 serverdef imaps[3517]: sql plugin Parse the username webmaster
Apr 19 12:11:52 serverdef imaps[3517]: sql plugin try and connect to a host
Apr 19 12:11:52 serverdef imaps[3517]: sql plugin trying to open db 'maildb' on host 'localhost'
Apr 19 12:11:52 serverdef imaps[3517]: sql plugin Parse the username webmaster
Apr 19 12:11:52 serverdef imaps[3517]: sql plugin try and connect to a host


I'm sure "webmaster@serverdef" leapt out at you as it did at me.

So this means I have to change something somewhere so that it's looking for "webmaster@audiodef.com" instead.

/etc/conf.d/hostname = serverdef. Should I change that to audiodef.com?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 2:31 am    Post subject: Reply with quote

/var/imap/domain still doesn't exist, but!

It doesn't look like I'm getting the quota errors any longer.

I already had cyrus built with the correct use flags, but I copied over the latest main.cf you posted (changed the IP address and removed the 29), changed serverdef.audiodef.com to just audiodef.com, changed the mail@localhost password to access maildb and the corresponding conf files that password shows up in (not necessary in hindsight, I was just poking around and troubleshooting in case I made a simple typo somewhere), updated smtpd.conf to remove the extra quotes, restarted everything, and now I do not get a login error.

I just had my gf, who was sitting next to me at her computer while I was typing this, send me a test email from her account and it went through!

Break out the beer, bro.

Now I need to create mailboxes for my accounts to replace what I'd been doing with Godaddy. Sending a test email from my regular @audiodef.com account didn't go through and I'm guessing it's because my MX record is expecting to do something from my VPS instead of through Godaddy now.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 2:40 am    Post subject: Reply with quote

Hm. I'm getting an over quota error in a different way.

I set up a tbird account for my regular email address (I'll PM it to you if it will help for you to know it) and it promptly downloaded the spam I'd gotten. I think I'd been having Godaddy do some filtering for me, which I can address in a bit. When I tried to delete a message, tbird said nope, can't do it because you're over quota. That struck me as odd...
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 2:49 am    Post subject: Reply with quote

Can't seem to connect to send mail. In tbird, I set as an outgoing mail server:

server name: audiodef.com
port 465
SSL/TLS
normal pass
user webmaster@audiodef.com

Did I do this wrong?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Apr 20, 2011 3:19 am    Post subject: Reply with quote

audiodef wrote:

I'm sure "webmaster@serverdef" leapt out at you as it did at me.


If you try and login with simply 'webmaster', cyrus will append a default realm to the login string (in this case serverdef)
if you try to login with the full 'webmaster@audiodef.com', it should take it exactly as you type it

I just tested with the guinea pig account i had you create me earlier, and that seemed to take ok far as inbound mail goes.
I sent myuser@audiodef an email from my other account, and it's there in Thunderbird

Sent a message *from* myuser@ to my other account, still waiting on it, but it may be caught in my company's filters :)
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Apr 20, 2011 3:20 am    Post subject: Reply with quote

audiodef wrote:
Can't seem to connect to send mail. In tbird, I set as an outgoing mail server:

server name: audiodef.com
port 465
SSL/TLS
normal pass
user webmaster@audiodef.com

Did I do this wrong?


Should be on port 25 still (SMTPS is something entirely different) using STARTTLS

Whereas IMAP should be on port 993, using SSL/TLS (though, as you have it set up now, port 143 without any SSL of any sort works)
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 1:06 pm    Post subject: Reply with quote

Thus far, Thunderbird just times out while trying to connect to audiodef.com to send mail, even with STARTTLS on port 25.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 1:13 pm    Post subject: Reply with quote

Another thing that's bugging me is before I set up postfix, I was using 27% of my server's storage allotment. Now it's 46%. I don't think this should be taking up that much room. 8O

I'm also getting the over quota message in mail.log again.

Went to /var/imap/db and noticed that du -h db shows 45M. I shouldn't have 45M worth of mail! 8O The db.backup files are each 11M.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 1:32 pm    Post subject: Reply with quote

Alright... I've enabled pop3s because I don't need to be able to access my email from anywhere and I do need to be conservative about server storage. With that, I've gotten my regular mailboxes in Thunderbird working, plus the new webmaster@. But that's only for receiving. I'm still not able to send despite playing with a variety of settings for the outgoing mail server.

Once I can solve that and figure out what's eating several GB of space, I'd be all set.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 5:11 pm    Post subject: Reply with quote

Really helpful folks at vr.org. 8)

Mark added

Code:

smtps inet n - n - - smtpd


To /etc/postfix/master.cf. I can now send mail to myself, but send fails when I try to send mail to other domains. I get a 5.7.1 relay access denied error.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6319
Location: /usr/lib64/lv2

PostPosted: Wed Apr 20, 2011 6:50 pm    Post subject: Reply with quote

I wonder if this is something I need to pay attention to.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Apr 20, 2011 7:10 pm    Post subject: Reply with quote

audiodef wrote:
I wonder if this is something I need to pay attention to.


only in the sense that authentication in general is the crux of the relaying denied issue

you were getting relay denied because no auth was provided, and the recipient domain was non-local.

One thing to remember when setting up authentication on your mail client, just like with the imap login, it has to be the full 'user@domain' and not just 'user'


'course, soon as you're happy with the new setup, need to kill off the other two MX records, and leave just 'audiodef.com' - i actually added a transport table to my postfix install here so that mail to your domain would have a hard-coded path, otherwise it might have ended up at smtp.secureserver.net :)
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 3 of 8

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum