google mail app password

앱 비밀번호로 로그인 - Google 계정 고객센터
중요: 앱 비밀번호 사용은 권장되지 않으며 대부분의 경우 필요하지 않습니다. 계정을 안전하게 보호하려면 ‘Google 계정으로 로그인’을 사용하여 앱을 Google 계정에 연결하세요. 앱 비밀번호란 보안 수준이 낮은 앱 또는 기기에 Google 계정에 대한 액세스 권한을 부여하는 16자리 비밀번호입니다. 앱 비밀번호는 2단계 인증이 사용 설정된 계정에

Because Ghost uses email-based sign-in, I needed an email account.

When signing in to Ghost, it sends a login link instead of using a password.

So, an email account is required, and I created a new Gmail account.

I initially tried setting up my own mail server, but configuring everything took too much time—setting up the mail server, dealing with the '535 5.7.8 Authentication failed' error, configuring DNS settings, and more.

Without a properly configured email account, signing in results in an error message like "Failed to send email: blah blah..."

The solution is simple—just update the config.production.json file.

An app password may be required if two-step verification is enabled.

cd /var/www/ghost

(or cd /var/lib/ghost/)
nano config.production.json
"mail": {
  "transport": "SMTP",
  "options": {
    "service": "Gmail",
    "host": "smtp.gmail.com",
    "port": 587,
    "secure": false,
    "auth": {
      "user": "your-email@gmail.com",
      "pass": "your-app-password"
    }
  }
}

security setting
port 587 (for TLS ) → "secure": false
port 465 (for SSL) → "secure": true

Check again. and done.