cd /etc/squirrelmail
vi config.php
1 $imapServerAddress = '192.168.1.X'; →設定你的imap主機
32 $imapPort = 143;
33 $useSendmail = false;
34 $smtpServerAddress = '192.168.1.X'; →設定你的smtp發信主機
35 $smtpPort = 25;
36 $sendmail_path = '/usr/sbin/sendmail';
37 $sendmail_args = '-i -t';
38 $pop_before_smtp = false;
39 $pop_before_smtp_host = '';
40 $imap_server_type = 'other';
41 $invert_time = false;
42 $optional_delimiter = 'detect';
43 $encode_header_key = '';